Difference between revisions of "Extensions.Job.CreateResponse"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
{{DISPLAYTITLE: '''CreateResponse '''}}[[Category:Job]] | {{DISPLAYTITLE: '''CreateResponse '''}}[[Category:Job]] | ||
== Classification == | == Classification == | ||
| − | {{ClassificationActivity | CreateResponse | | + | {{ClassificationActivity | CreateResponse | Creates a response inside a result object | [[Term]] | [[Extensions.Job|OTX Job extension]] | [[Extensions.Job#Terms|Job related terms]] | [[Extensions.Job.InvalidParameterizationException|InvalidParameterizationException]] | - }} |
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
| − | ResponseTerm = Job.CreateResponse( | + | ResponseTerm = Job.CreateResponse(ResponseStates, ResultTerm); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
| − | '''CreateResponse''' a response | + | The '''CreateResponse''' creates a response inside a result object according to a given response state. |
| − | {{TermReturnValue| [[Extensions.DiagCom.Response|Response]] | The result will be | + | {{TermReturnValue| [[Extensions.DiagCom.Response|Response]] | The result will be created.}} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
| − | {{TableRowPropertie1| ResponseState | [[Extensions.DiagCom.ResponseState|ResponseState]] | [[Value]] | | + | {{TableRowPropertie1| ResponseState | [[Extensions.DiagCom.ResponseState|ResponseState]] | [[Value]] | POSITIVE | [0..1] | This optional attribute determines whether a positive or negative response should be created. If the attribute is not set, the default value POSITIVE shall apply implicitly.}} |
| + | {{TableRowPropertie2| Result| [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | The result the new response shall be added to.}} | ||
|} | |} | ||
| Line 23: | Line 24: | ||
DiagCom.Result ResultDiag1; | DiagCom.Result ResultDiag1; | ||
DiagCom.Response Response1; | DiagCom.Response Response1; | ||
| + | |||
| + | /// Flow | ||
Response1 = Job.CreateResponse(@JobResponseStates:POSITIVE, ResultDiag1); | Response1 = Job.CreateResponse(@JobResponseStates:POSITIVE, ResultDiag1); | ||
Revision as of 08:27, 18 October 2018
Contents
Classification
| Name | CreateResponse |
| Short Description | Creates a response inside a result object |
| Class | Term |
| Extension | OTX Job extension |
| Group | Job related terms |
| Exceptions | InvalidParameterizationException |
| Checker Rules | - |
| Standard Compliant | Yes |
OTL Syntax
ResponseTerm = Job.CreateResponse(ResponseStates, ResultTerm);Description
The CreateResponse creates a response inside a result object according to a given response state.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
| Data Type | Description |
| Response | The result will be created. |
Properties
| Name | Data Type | Class | Default | Cardinality | Description |
| ResponseState | ResponseState | Value | POSITIVE | [0..1] | This optional attribute determines whether a positive or negative response should be created. If the attribute is not set, the default value POSITIVE shall apply implicitly. |
| Result | Result | Term | - | [1] | The result the new response shall be added to. |
OTL Examples
DiagCom.Result ResultDiag1;
DiagCom.Response Response1;
/// Flow
Response1 = Job.CreateResponse(@JobResponseStates:POSITIVE, ResultDiag1);