Difference between revisions of "Extensions.EventPlus.DeepMonitorChangeEventSource"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
== Description == | == Description == | ||
− | The OTX ''' | + | The OTX '''DeepMonitorChangeEventSource ''' 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'''. |
{{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.}} |
Revision as of 10:55, 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 DeepMonitorChangeEventSource 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 = &012345;
/// Flow
EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);
parallel
{
lane
{
ShiftRight(ByteField1, 2);
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}