Difference between revisions of "Extensions.Job.AddElement"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE: '''AddElement '''}} | {{DISPLAYTITLE: '''AddElement '''}} | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | AddElement | Add parameters or parameter structure | [[Action]] | [[Extensions.Job|OTX Job extension]] | [[Job related actions]] | [[Core. | + | {{ClassificationActivity | AddElement | Add parameters or parameter structure | [[Action]] | [[Extensions.Job|OTX Job extension]] | [[Extensions.Job#Actions|Job related actions]] | [[Core.DataTypes.ComplexDataType.TypeMismatchException|TypeMismatchException]] | - }} |
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Job.AddElement( | + | Job.AddElement(ParameterContainerTerm, ParameterContainerTerm); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | '''AddElement''' is used to add a parameter or | + | The '''AddElement''' is used to add a parameter or parameter structure to a point in a response structure. |
== Properties == | == Properties == | ||
Line 20: | Line 20: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | DiagCom.Request | + | DiagCom.Request Request; |
+ | DiagCom.ComChannel ComChannel1; | ||
+ | DiagCom.DiagService DiagService1; | ||
+ | DiagCom.Result Result1; | ||
+ | DiagCom.Response Response1; | ||
− | Job.AddElement( | + | /// Flow |
+ | |||
+ | ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", NULL, false); | ||
+ | DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu"); | ||
+ | [#MetaData(RequestPdu), <#Data>22 01 00</#Data>] | ||
+ | DiagCom.ExecuteDiagService(DiagService1, {}, {}, Result1, NULL, false, false); | ||
+ | Response1 = DiagCom.GetFirstResponse(Result1); | ||
+ | Request = DiagCom.GetRequest(DiagService1); | ||
+ | Job.AddElement(Response1, Request); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 29: | Line 41: | ||
[[Extensions.Job.SendIntermediateResult|SendIntermediateResult]]<br/> | [[Extensions.Job.SendIntermediateResult|SendIntermediateResult]]<br/> | ||
[[Extensions.Job.SetJobInfo|SetJobInfo]]<br/> | [[Extensions.Job.SetJobInfo|SetJobInfo]]<br/> | ||
− | [[Extensions.Job.SetProgressInfo|SetProgressInfo]]<br/> | + | [[Extensions.Job.SetProgressInfo|SetProgressInfo]]<br/> |
+ | <!--[[Extensions.Job.AddElement|AddElement]]<br/>--> | ||
[[Extensions.Job.AddBranchByName|AddBranchByName]]<br/> | [[Extensions.Job.AddBranchByName|AddBranchByName]]<br/> | ||
[[Extensions.Job.AddBranchByIndex|AddBranchByIndex]]<br/> | [[Extensions.Job.AddBranchByIndex|AddBranchByIndex]]<br/> | ||
[[Extensions.Job.AddBranchByValue|AddBranchByValue]]<br/> | [[Extensions.Job.AddBranchByValue|AddBranchByValue]]<br/> | ||
− | [[Extensions.Job.AddEnvDataByDtc|AddEnvDataByDtc]] | + | [[Extensions.Job.AddEnvDataByDtc|AddEnvDataByDtc]]<br/> |
+ | [[Extensions.DiagCom.GetComChannel|GetComChannel]]<br/> | ||
+ | [[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]]<br/> | ||
+ | [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]]<br/> | ||
+ | [[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]]<br/> | ||
+ | [[Extensions.DiagCom.GetRequest|GetRequest]]<br/> |
Revision as of 04:25, 18 October 2018
Classification
Name | AddElement |
Short Description | Add parameters or parameter structure |
Class | Action |
Extension | OTX Job extension |
Group | Job related actions |
Exceptions | TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Job.AddElement(ParameterContainerTerm, ParameterContainerTerm);
Description
The AddElement is used to add a parameter or parameter structure to a point in a response structure.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ParameterContainer | ParameterContainer | Term | - | [1] | The parameters in which new element (s) to be added. |
Content | ParameterContainer | Term | - | [0..1] | The item (s) is added to the parameter container. |
OTL Examples
DiagCom.Request Request;
DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
DiagCom.Response Response1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", NULL, false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu");
[#MetaData(RequestPdu), <#Data>22 01 00</#Data>]
DiagCom.ExecuteDiagService(DiagService1, {}, {}, Result1, NULL, false, false);
Response1 = DiagCom.GetFirstResponse(Result1);
Request = DiagCom.GetRequest(DiagService1);
Job.AddElement(Response1, Request);
See also
SendFinalResult
SendIntermediateResult
SetJobInfo
SetProgressInfo
AddBranchByName
AddBranchByIndex
AddBranchByValue
AddEnvDataByDtc
GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetFirstResponse
GetRequest