Difference between revisions of "Core.Actions.Assignment"
Jump to navigation
Jump to search
m (Kl moved page Assignment to Core.Actions.Assignment) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | {{DISPLAYTITLE:OTX '''Assignment'''}}[[Category:Core]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | Assignment | Assigning an expression to a variable | [[Action]] | [[Core|OTX Core library]] | [[Core related actions]] | - | [[CoreChk023|Core_Chk023]] }} | + | {{ClassificationActivity | Assignment | Assigning an expression to a variable | [[Action]] | [[Core|OTX Core library]] | [[Core related actions]] | - | [[Core.Validation.CoreChk023|Core_Chk023]] }} |
== Description == | == Description == | ||
An expression or value can be assigned to a variable with the OTX '''Assignment''' activity. The basis for the representation of complex terms in the designer, see [[ActivitysAndTerms|activities]] is the assignment ''ActionNode''. | An expression or value can be assigned to a variable with the OTX '''Assignment''' activity. The basis for the representation of complex terms in the designer, see [[ActivitysAndTerms|activities]] is the assignment ''ActionNode''. | ||
+ | |||
+ | == OTL Syntax == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | Variable = Term; | ||
+ | </syntaxhighlight> | ||
== Properties == | == Properties == | ||
Line 12: | Line 17: | ||
{{TableRowPropertie2| Term | - | [[Term]] | - | [1] | Expression is calculated, and the result of which is assigned to the variable}} | {{TableRowPropertie2| Term | - | [[Term]] | - | [1] | Expression is calculated, and the result of which is assigned to the variable}} | ||
|} | |} | ||
+ | |||
+ | == OTL Examples == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | Integer Variable1; | ||
+ | String Variable2; | ||
+ | Float Variable3; | ||
+ | |||
+ | Variable1 = 123; | ||
+ | Variable2 = "Hello"; | ||
+ | Variable3 = 0.123; | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == | ||
− | [[ProcedureCall]] <br/> | + | [[Core.Actions.ProcedureCall|ProcedureCall]] <br/> |
− | [[ShiftRight]] <br/> | + | [[Core.Actions.ShiftRight|ShiftRight]] <br/> |
− | [[ShiftLeft]] <br/> | + | [[Core.Actions.ShiftLeft|ShiftLeft]] <br/> |
− | [[SetBit]] <br/> | + | [[Core.Actions.SetBit|SetBit]] <br/> |
− | [[ReplaceSubByteField]] <br/> | + | [[Core.Actions.ReplaceSubByteField|ReplaceSubByteField]] <br/> |
− | [[AppendByteField]] <br/> | + | [[Core.Actions.AppendByteField|AppendByteField]] <br/> |
− | [[ListConcatenate]] <br/> | + | [[Core.Actions.ListConcatenate|ListConcatenate]] <br/> |
− | [[ListAppendItems]] <br/> | + | [[Core.Actions.ListAppendItems|ListAppendItems]] <br/> |
− | [[ListInsertItems]] <br/> | + | [[Core.Actions.ListInsertItems|ListInsertItems]] <br/> |
− | [[ListRemoveItems]] <br/> | + | [[Core.Actions.ListRemoveItems|ListRemoveItems]] <br/> |
− | [[ListClear]] <br/> | + | [[Core.Actions.ListClear|ListClear]] <br/> |
− | [[MapUnion]] <br/> | + | [[Core.Actions.MapUnion|MapUnion]] <br/> |
− | [[MapPutItems]] <br/> | + | [[Core.Actions.MapPutItems|MapPutItems]] <br/> |
− | [[MapRemoveItems]] <br/> | + | [[Core.Actions.MapRemoveItems|MapRemoveItems]] <br/> |
− | [[MapClear]] | + | [[Core.Actions.MapClear|MapClear]] |
Latest revision as of 08:51, 16 February 2016
Classification
Name | Assignment |
Short Description | Assigning an expression to a variable |
Class | Action |
Extension | OTX Core library |
Group | Core related actions |
Exceptions | - |
Checker Rules | Core_Chk023 |
Standard Compliant | Yes |
Description
An expression or value can be assigned to a variable with the OTX Assignment activity. The basis for the representation of complex terms in the designer, see activities is the assignment ActionNode.
OTL Syntax
Variable = Term;
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Result | - | Variable | - | [1] | Variable is assigned the value of the term. |
Term | - | Term | - | [1] | Expression is calculated, and the result of which is assigned to the variable |
OTL Examples
Integer Variable1;
String Variable2;
Float Variable3;
Variable1 = 123;
Variable2 = "Hello";
Variable3 = 0.123;
See also
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapRemoveItems
MapClear