Help
Event Handling Scope Activity
Help menu
- Help content
- AS2
- Examples and Tutorials
- IO Queues and Forms
- Maps
- Schemas
- Send and Receive Ports
- Send and Receive Ports / Transports
- Servers
- Static Configuration
- Tracking
- Workflows
- Workflows / Workflow Activities
- Call Web Service Direct Activity
- Compensatable Sequence Activity
- Compensatable Transaction Scope Activity
- Compensate Activity
- Conditioned Activity Group
- Database Activity
- Delay Activity
- Event Handling Scope Activity
- Event Driven Activity
- Expression Activity
- Fault Handler Activity
- If Else Activity
- Increment Activity
- Invoke Web Service Activity
- Invoke Blue Integrator Workflow Activity
- Invoke Workflow Activity
- Listen Activity
- Map Activity
- Parallel Activity
- Policy Activity
- Send Receive Port Response Activity
- Replicator Activity
- Send Receive Port Response Activity
- Send Port Message Activity
- Sequence Activity
- Suspend Activity
- Synchronization Scope Activity
- Transaction Scope Activity
- While Activity
The Event Handling Scope Activity wraps a sequence of Activities similarly to other Sequence Activities, but also may contain a number of Event Driven Activities; which are Sequences headed by an Event Activity¹. If at any time these events are realized during the normal sequence of child Activities, i.e. in the scope of the Event Handling Scope Activity, control will jump to the relevant Event Sequence. Perhaps this in best illustrated with an example.
Event Handling Scope Activity
Above we have an Event Handling Scope Activity with just a Delay Activity in its ‘normal’ sequence (left). It also contains an Event Handling Activity (shown right) which consists of a Receive Port Activity (the ‘event activity’) and a Code Activity.
When executed the workflow will idle for the period set in the Delay Activity as normal. However, we are currently in the scope of the Event handler, so if an event (a message received in this example) is ‘heard’ during this period, control will immediately jump to the Event Driven Activity and its following Activities (the Code Activity in this case) will be executed. If an event is not triggered, i.e. a message isn’t received, within the time period of the Delay Activity, execution will never reach the Event Driven Activity, as once out of scope, the event will be ignored.
For more information see Workflow Basics – Event Handling.
¹Event activity –an activity that triggers an event. A Receive Port Activity, Receive Send Port Response Activity, or Delay activity.