0 votes
in Interview Questions by (16.6k points)

1 Answer

0 votes
by (660 points)

The Event sub process is available in the process level pallete and can be used while authoring a process/linked process. 

The main use of the event sub process is to handle events ( message, time based, error events) that can occur in the process level.

The main advantage of using the event sub process is 

  1. build effective process flow without complecating the actual process flow and let the event sub process handle the event processing load
  2. have a parallel mechanism to react to events
  3. decouple the process logic with event handling logic
  4. ease of implementing business use cases
Some of the main use cases of event sub processes are - 
  1. listening for events while a process flow is in flight to either update the variables, notify the process flow to change the flow order due to the event, update third party system in a de coupled manner
  2. executing a logic after a certain point in time
  3. capture error events and have a generic error handling logic that is de coupled from the flow
The message based event sub process can be used as interrupting or non interrupting based on a regular UCA implementation
Note - the token on the message start event inside a event sub process is always active and a new one keeps replacing the one which was fired due a receving a message. the token is alive on the start message event till the lifecycle of the process instance
so in effect this acts as a perpertual event listener that does not need any kind of loop back to the start of the event sub process once the logic for the event sub process is completed.
this is one of the biggest advantage of the event sub process rather that simulating the effect in the main process flow.
We can also use a timer based start event in the event sub process, this fires only once on the set duration on timer after the process instance is created.
the error start event in the event sub process can catch any errors thrown/geenrated on the process level and the error event is always interrupting in nature.

Related questions

0 votes
1 answer 586 views
0 votes
2 answers 1.0k views
+1 vote
1 answer 795 views
0 votes
1 answer 877 views
0 votes
1 answer 324 views
0 votes
1 answer 1.4k views
0 votes
0 answers 91 views
0 votes
0 answers 178 views
0 votes
0 answers 215 views
0 votes
0 answers 167 views
0 votes
1 answer 461 views
0 votes
0 answers 149 views
0 votes
1 answer 516 views

616 questions

493 answers


2.0k users

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel