Extensions.Job.AddBranchByValue

From emotive
Jump to navigation Jump to search

Classification

Name AddBranchByValue
Short Description Adds a set of response parameters to the response structure
Class Action
Extension OTX Job extension
Group Job related actions
Exceptions InvalidParameterizationException
Checker Rules -
Standard Compliant Yes

OTL Syntax

Job.AddBranchByValue(ParameterContainerTerm parameterContainer, QuantityTerm value);

Description

The AddBranchByValue is used to add a set of response parameters to the response structure according to a multiplexer parameter value.

Properties

Name Data Type Class Default Cardinality Description
ParameterContainer ParameterContainer Term - [1] This element represents the parameter where new element(s) will be added.
Value Quantity Term - [1] The value of the multiplexer parameter of the branch to be added.

OTL Examples

/// Local Declarations

DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.Parameter Parameter1;
Quantities.Quantity Value1 = 9.9 [@Unit, "BL_DataLibraMIB.odx", "''"];

/// 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);
Job.AddBranchByValue(Response1, Value1);

See also

SendFinalResult
SendIntermediateResult
SetJobInfo
SetProgressInfo
AddElement
AddBranchByName
AddBranchByIndex
AddEnvDataByDtc
GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetFirstResponse
GetRequest