Extensions.Job.AddBranchByIndex
Jump to navigation
Jump to search
Classification
Name | AddBranchByIndex |
Short Description | Adds a set of response parameters to the response structure by its index |
Class | Action |
Extension | OTX Job extension |
Group | Job related actions |
Exceptions | TypeMismatchException OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Job.AddBranchByIndex(ParameterContainerTerm parameterContainer, ParameterContainerTerm content, NumericTerm index);
Description
The AddBranchByIndex is used to add a number of parameters Response to Response structure according to a multiplexer database definition given by its index.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ParameterContainer | ParameterContainer | Term | - | [1] | The parameter where new element(s) will be added. |
Index | Numeric | Term | - | [1] | The index of the multiplexer branch to be added. Float values will be truncated. |
Content | ParameterContainer | Term | - | [0..1] | The element(s) to be placed in the newly created multiplexer branch. |
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.Parameter Parameter1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentECUIdent");
[#MetaData(RequestPdu), <#Data>22 04 07</#Data>]
DiagCom.ExecuteDiagService(DiagService1, {Param_RecorDataIdent = "VW Logical Software Block Counter Of Programming Attempts"}, {}, Result1, NULL, false, false);
Response1 = DiagCom.GetFirstResponse(Result1);
Parameter1 = DiagCom.GetParameterByPath(Response1, {"Param_DataRecor"});
Job.AddBranchByIndex(Response1, Parameter1, 1);
See also
SendFinalResult
SendIntermediateResult
SetJobInfo
SetProgressInfo
AddElement
AddBranchByName
AddBranchByValue
AddEnvDataByDtc
GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetFirstResponse
GetRequest