Difference between revisions of "Extensions.Job.CreateResponse"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:  '''CreateResponse '''}}[[Category:Job]]
 
{{DISPLAYTITLE:  '''CreateResponse '''}}[[Category:Job]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | CreateResponse | Create response within a result object | [[Term]] | [[Extensions.Job|OTX Job extension]] | [[Job related terms]] | [[Core.Actions.Throw.Exception.InvalidParameterizationException|InvalidParameterizationException]] | - }}
+
{{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(@JobResponseStates:POSITIVE, ResultTerm);
+
ResponseTerm = Job.CreateResponse(ResponseStates, ResultTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
'''CreateResponse''' a response within a resultobject created State after a specified 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 added to the new response.}}
+
{{TermReturnValue| [[Extensions.DiagCom.Response|Response]] | The result will be created.}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ResponseState | [[Extensions.DiagCom.ResponseState|ResponseState]] | [[Value]] | @ResponseState:POSITIVE | [0..1] | This optional attribute determines whether to create a positive or negative response. If the attribute is not set, the default value of POSITIVE will be implicitly.}}
+
{{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

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.

Icons Note.png 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);

See also

CreateResult
GetJobInfo
GetJobProgress