Difference between revisions of "Extensions.DiagCom.SetParameterValueBySemantic"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== Classification == | == Classification == | ||
{{ClassificationActivity | SetParameterValueBySemantic | Sets the value of a request parameter via a semantic attribute | [[Action]] | [[DiagCom|OTX DiagCom extension]] | [[ComParameter related actions]] | [[TypeMismatchException]] <br/> [[AmbiguousSemanticException]] <br/> [[OutOfBoundsException]] | - }} | {{ClassificationActivity | SetParameterValueBySemantic | Sets the value of a request parameter via a semantic attribute | [[Action]] | [[DiagCom|OTX DiagCom extension]] | [[ComParameter related actions]] | [[TypeMismatchException]] <br/> [[AmbiguousSemanticException]] <br/> [[OutOfBoundsException]] | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | SetParameterValueByPath(ParameterContainer | + | DiagCom.SetParameterValueByPath(ParameterContainer, StringTerm, Term); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | ComChannel myComCannel = GetComChannel("LL_AllEmissRelatUDSSyste", | + | DiagCom.ComChannel myComCannel; |
− | + | DiagCom.DiagService myDiagService; | |
− | + | DiagCom.Request req; | |
− | SetParameterValueBySemantic(param, " | + | DiagCom.Parameter param; |
+ | |||
+ | myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false); | ||
+ | myDiagService = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentASAMODXFileIdent"); | ||
+ | req = DiagCom.GetRequest(myDiagService); | ||
+ | param = DiagCom.GetParameterByPath(req, {"Param_RecorDataIdent"}); | ||
+ | DiagCom.SetParameterValueBySemantic(param, "Semantic", "Value"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 03:10, 5 February 2015
Classification
Name | SetParameterValueBySemantic |
Short Description | Sets the value of a request parameter via a semantic attribute |
Class | Action |
Extension | OTX DiagCom extension |
Group | ComParameter related actions |
Exceptions | TypeMismatchException AmbiguousSemanticException OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
DiagCom.SetParameterValueByPath(ParameterContainer, StringTerm, Term);
Description
The SetParameterValueBySemantic activity sets a request parameter "manually" to a specific value, see ExecuteDiagService. The parameter is used on a so-called semantic-attribute selected.
![]()
Is a prerequisite for the use of semantic attributes, that they through the diagnostic runtime system are supported and that they in the diagnostic database have been adjusted.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ParameterContainer | ParameterContainer | Term | - | [1] | The object that contains the parameter whose to be set value. |
Semantic | String | Term | - | [1] | Semantics attribute. |
Value | - | Variable | - | [1] | Value of the corresponding type that is to be placed. |
Examples
DiagCom.ComChannel myComCannel;
DiagCom.DiagService myDiagService;
DiagCom.Request req;
DiagCom.Parameter param;
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
myDiagService = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentASAMODXFileIdent");
req = DiagCom.GetRequest(myDiagService);
param = DiagCom.GetParameterByPath(req, {"Param_RecorDataIdent"});
DiagCom.SetParameterValueBySemantic(param, "Semantic", "Value");