Difference between revisions of "Core.Actions.Group"
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
public procedure main() | public procedure main() | ||
{ | { | ||
− | + | Integer Integer1; | |
− | + | group | |
− | + | { | |
− | + | Integer1 = 123; | |
− | + | if ((Integer1 == 123)) | |
− | + | { | |
− | + | Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null); | |
− | + | } | |
− | + | else | |
− | + | { | |
− | + | Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null); | |
− | + | } | |
− | + | } | |
− | + | group | |
− | + | { | |
− | + | realization() | |
− | + | { | |
− | + | Integer1 = 123; | |
− | + | if ((Integer1 == 123)) | |
− | + | { | |
− | + | Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null); | |
− | + | } | |
− | + | else | |
− | + | { | |
− | + | Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null); | |
− | + | } | |
− | + | } | |
− | + | realization() | |
− | + | { | |
− | + | Integer1 = 123; | |
− | + | if ((Integer1 == 123)) | |
− | + | { | |
− | + | Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null); | |
− | + | } | |
− | + | else | |
− | + | { | |
− | + | Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null); | |
− | + | } | |
− | + | } | |
− | + | } | |
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 12:01, 2 February 2015
Classification
Name | Group |
Short Description | The logical grouping of activities |
Class | Compound Node |
Extension | OTX Core library |
Group | Compound node related actions |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
//Group
group
{
...
}
//Group realisation
group
{
realization()
{
...
}
realization()
{
...
}
}
Description
The OTX Group activity is the easiest of all tree nodes. She can be used to combine multiple activities in a group. All activities within the group can thus be regarded as logically contiguous block. The author thus shows the togetherness of the contained activities and produces clear and transparent processes.
The run-time behavior of a group activity can be adjusted via the ValidFor property of nearby, see ValidityConcept.
OTL Examples
public procedure main()
{
Integer Integer1;
group
{
Integer1 = 123;
if ((Integer1 == 123))
{
Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
}
else
{
Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
}
}
group
{
realization()
{
Integer1 = 123;
if ((Integer1 == 123))
{
Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
}
else
{
Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
}
}
realization()
{
Integer1 = 123;
if ((Integer1 == 123))
{
Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
}
else
{
Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
}
}
}
}