Extensions.DiagCom.SetParameterValueBySemantic
Revision as of 09:24, 15 July 2014 by Nb (talk | contribs) (Created page with "Category:DiagCom == Classification == {{ClassificationActivity | SetParameterValueBySemantic | Sets the value of a request parameter via a semantic attribute | Action...")
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 |
Pseudo-Code Syntax
SetParameterValueByPath(ParameterContainer container, StringTerm semantic, Variable value);
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
ComChannel myComCannel = GetComChannel("LL_AllEmissRelatUDSSyste", "", false);
Request req = GetRequest(CreateDiagServiceByName(myComCannel,"DiagnServi_ReadDataByIdentActuaTestStatu"));
Parameter param = GetParameterByPath(req, "Param_RequeServiId");
SetParameterValueBySemantic(param, "SEMANTIC", value);