Wait for Event Activity
The Wait For Event activity waits for one or more events to occur, based on the events added to this activity; otherwise, it can be set to time out.
The Wait For Event activity can subscribe to events created in the Event model. To use these events in the current workflow's Wait for Event activity, they must be added to External Events in the subprocess or workflow configuration panels.
The Wait For Event activity can also subscribe to local events created in a workflow by the Create Event Activity, or may trigger Event Handlers.
General Settings
The following table describes the wait behaviors available for this activity:
Wait for... | Value | Description |
---|---|---|
All events to occur | N/A | Select this option if you want the activity to wait for all events in the events list to occur before moving to the next activity. |
Any event to occur | N/A | Select this option if it does not matter which event in the events list occurs before moving to the next activity. |
Timeout | User-defined TimeSpan (days, hours:minutes:seconds) | Specifies a timeout condition where the activity waits for one or more activities to occur, or timeout at the specified time. You can bind to other workflow, subprocess, or activity properties, or build an expression based on existing workflow values. |
Events
Attribute | Value | Description |
---|---|---|
Add Event | N/A | Click this button if you want to add more than one event to the Events list. |
Ellipsis | User-defined | Click this button to select an event resource. |
Remove Event button | N/A | Click this button to remove the current event resource. |
Remove Event button | N/A | Click this button to remove the current event resource. |
Event Source | System-defined | Displays the name of any preconfigured event that has been added. |
Outputs: Occurred | System-defined | The default is a Boolean data type that can be bound to a workflow, subprocess, or activity variable. |
Outputs: other | User-defined | Output properties are dependent on the configuration of selected events. |
Property Values
The following property values are available for this activity:
Property | Value | Description |
---|---|---|
TimedOut | Boolean | Indicates whether the event timed out or not. Output is True or False. |
Timeout | TimeSpan | Indicates the time to time out. |
WaitForAll | Boolean | Indicates if this activity will wait for all events to occur. Output is True or False. |
WaitDefinition | System-defined | Output based on configuration of the wait definition. |