Difference between revisions of "Extensions.EventPlus.DeepMonitorChangeEventSource"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE: '''DeepMonitorChangeEventSource '''}}Category:EventPlus == Classification == {{ClassificationActivity | DeepMonitorChangeEventSource | UPDATING...<!--Crea...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE: '''DeepMonitorChangeEventSource '''}}[[Category:EventPlus]] | {{DISPLAYTITLE: '''DeepMonitorChangeEventSource '''}}[[Category:EventPlus]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | DeepMonitorChangeEventSource | | + | {{ClassificationActivity | DeepMonitorChangeEventSource | Create an event source for change event | [[Term]] | [[Extensions.EventPlus|OTX EventPlus extension]] | [[Extensions.EventPlus#Terms|Event source related terms]] | - | [[Extensions.EventHandling.EventChk002|Event_Chk002]] }} |
== OTL Syntax == | == OTL Syntax == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | EventSourceTerm = | + | EventSourceTerm = EventPlus.DeepMonitorChangeEventSource(Variable); |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== Description == | == Description == | ||
− | + | The OTX '''MonitorChangeEventSource''' is similar to [[Extensions.EventHandling.MonitorChangeEventSource|'''event:MonitorChangeEventSource''']], but with additional deep change-monitoring for variables of [[Core.DataTypes.ComplexDataType|complex datatypes]] like [[Core.DataTypes.ComplexDataType.List|List]], [[Core.DataTypes.ComplexDataType.Map|Map]] and [[Core.DataTypes.ComplexDataType.ByteField|ByteField]]. The deep change-monitoring shall detect changing, adding and removing of items in Lists, Maps and ByteFields in any depth. For variables of simple datatypes, this term shall behave like [[Extensions.EventHandling.MonitorChangeEventSource|'''event:MonitorChangeEventSource''']]. Because '''DeepMonitorChangeEventSource''' is derived from [[Extensions.EventHandling.MonitorChangeEventSource|event:MonitorChangeEventSource]], the term [[Extensions.EventHandling.IsMonitorChangeEvent|event:IsMonitorChangeEvent]] shall return TRUE when the Event originates from a '''DeepMonitorChangeEventSource'''. | |
− | The OTX '''MonitorChangeEventSource''' | ||
− | |||
− | |||
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}} | {{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}} | ||
== Properties == | == Properties == | ||
− | |||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Variable | - | [[Variable]] | - | [1] | The variable which has to be monitored.}} | + | {{TableRowPropertie1| Variable | - | [[Variable]] | - | [1..1] | The variable which has to be monitored.}} |
|} | |} | ||
− | + | ||
== OTL Examples == | == OTL Examples == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | |||
EventHandling.EventSource EventSource1; | EventHandling.EventSource EventSource1; | ||
EventHandling.Event Event1; | EventHandling.Event Event1; | ||
+ | ByteField ByteField1; | ||
+ | |||
+ | /// Flow | ||
+ | |||
+ | EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1); | ||
− | |||
parallel | parallel | ||
{ | { | ||
− | + | lane | |
− | + | { | |
− | + | ByteField1 = &012345; | |
− | + | } | |
− | + | lane | |
− | + | { | |
− | + | EventHandling.WaitForEvent({EventSource1}, Event1); | |
− | + | } | |
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== See also == | == See also == | ||
<!--[[Extensions.EventPlus.DeepMonitorChangeEventSource|DeepMonitorChangeEventSource]] <br/>--> | <!--[[Extensions.EventPlus.DeepMonitorChangeEventSource|DeepMonitorChangeEventSource]] <br/>--> | ||
[[Extensions.EventPlus.IsDeepMonitorChangeEvent|IsDeepMonitorChangeEvent]] <br/> | [[Extensions.EventPlus.IsDeepMonitorChangeEvent|IsDeepMonitorChangeEvent]] <br/> |
Revision as of 10:26, 26 September 2018
Contents
Classification
Name | DeepMonitorChangeEventSource |
Short Description | Create an event source for change event |
Class | Term |
Extension | OTX EventPlus extension |
Group | Event source related terms |
Exceptions | - |
Checker Rules | Event_Chk002 |
Standard Compliant | Yes |
OTL Syntax
EventSourceTerm = EventPlus.DeepMonitorChangeEventSource(Variable);
Description
The OTX MonitorChangeEventSource is similar to event:MonitorChangeEventSource, but with additional deep change-monitoring for variables of complex datatypes like List, Map and ByteField. The deep change-monitoring shall detect changing, adding and removing of items in Lists, Maps and ByteFields in any depth. For variables of simple datatypes, this term shall behave like event:MonitorChangeEventSource. Because DeepMonitorChangeEventSource is derived from event:MonitorChangeEventSource, the term event:IsMonitorChangeEvent shall return TRUE when the Event originates from a DeepMonitorChangeEventSource.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
EventSource | The EventSource, the changes in the value of a variable monitored. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Variable | - | Variable | - | [1..1] | The variable which has to be monitored. |
OTL Examples
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
ByteField ByteField1;
/// Flow
EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);
parallel
{
lane
{
ByteField1 = &012345;
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}