Difference between revisions of "Extensions.EventHandling.WaitForEvent"
Jump to navigation
Jump to search
m (Hb moved page WaitForEvent to Extensions.EventHandling.WaitForEvent: #3153) |
|||
Line 1: | Line 1: | ||
− | [[Category:EventHandling]] | + | {{DISPLAYTITLE: '''WaitForEvent'''}}[[Category:EventHandling]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | WaitForEvent | Wait until an event is triggered and then continues processing | [[Action]]| [[DiagCom|OTX DiagCom extension]] | [[EventHandling related actions]] | - | - }} | + | {{ClassificationActivity | WaitForEvent | Wait until an event is triggered and then continues processing | [[Action]]| [[Extensions.DiagCom|OTX DiagCom extension]] | [[EventHandling related actions]] | - | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Line 16: | Line 16: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Event | [[Event]] | [[Variable]] | - | [0..1] | After an event is triggered, this variable contains the corresponding event.}} | + | {{TableRowPropertie1| Event | [[Extensions.EventHandling.Event|Event]] | [[Variable]] | - | [0..1] | After an event is triggered, this variable contains the corresponding event.}} |
− | {{TableRowPropertie2| EventSource | [[EventSource]] | [[Term]] | - | [1] | One or more event sources. The order is insignificant. Once a source triggering an event, the waiting is ended.}} | + | {{TableRowPropertie2| EventSource | [[Extensions.EventHandling.EventSource|EventSource]] | [[Term]] | - | [1] | One or more event sources. The order is insignificant. Once a source triggering an event, the waiting is ended.}} |
|} | |} | ||
Line 40: | Line 40: | ||
== See also == | == See also == | ||
− | [[CloseEventSource]] | + | [[Extensions.EventHandling.CloseEventSource|CloseEventSource]] |
Revision as of 04:55, 15 February 2016
Classification
Name | WaitForEvent |
Short Description | Wait until an event is triggered and then continues processing |
Class | Action |
Extension | OTX DiagCom extension |
Group | EventHandling related actions |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
EventHandling.WaitForEvent(EventSourceTerm);
Description
The OTX WaitForEvent activity blocks the current flow (thread) until a specified event sources has triggered an event. When an event is triggered, completed the WaitForEvent activity and the process continues with the next activity. The event that led to the termination of the activity can be evaluated using the Event property, see below.
Ending the waitforevent activity, all on-the-fly (ie on the corresponding event source term, see Property Source) event sources generated automatically.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Event | Event | Variable | - | [0..1] | After an event is triggered, this variable contains the corresponding event. |
EventSource | EventSource | Term | - | [1] | One or more event sources. The order is insignificant. Once a source triggering an event, the waiting is ended. |
OTL Examples
Boolean Bool1 = false;
EventHandling.EventSource EventSource1;
EventSource1 = EventHandling.MonitorChangeEventSource(Bool1);
parallel
{
lane
{
Bool1 = true;
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}