Difference between revisions of "Extensions.Job.CreateResponse"
Jump to navigation
Jump to search
| (2 intermediate revisions by one other user not shown) | |||
| Line 5: | Line 5: | ||
== 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(ResultTerm result, ResponseStates responseState); | |
| − | |||
| − | |||
| − | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 19: | Line 16: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
| − | {{TableRowPropertie1| ResponseState | [[Extensions.DiagCom.ResponseState|ResponseState]] | [[Value]] | POSITIVE | [0..1] | This optional attribute determines whether a positive or negative response | + | {{TableRowPropertie1| ResponseState | [[Extensions.DiagCom.ResponseState|ResponseState]] | [[Value]] | POSITIVE | [0..1] | This optional attribute determines whether a positive or negative response will be created. If the attribute is not set, the default value POSITIVE will apply implicitly.}} |
| − | {{TableRowPropertie2| Result| [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | The result the new response | + | {{TableRowPropertie2| Result| [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | The result the new response will be added to.}} |
|} | |} | ||
| Line 27: | Line 24: | ||
/// Local Declarations | /// Local Declarations | ||
| − | DiagCom.Result | + | DiagCom.Result Result1; |
DiagCom.Response Response1; | DiagCom.Response Response1; | ||
Latest revision as of 03:27, 13 September 2019
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(ResultTerm result, ResponseStates responseState);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 will be created. If the attribute is not set, the default value POSITIVE will apply implicitly. |
| Result | Result | Term | - | [1] | The result the new response will be added to. |
OTL Examples
/// Local Declarations
DiagCom.Result Result1;
DiagCom.Response Response1;
/// Flow
Response1 = Job.CreateResponse(Result1, @JobResponseStates:POSITIVE);