How to let parent process instance continue when child process instance is deleted

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2015 04:05 PM
Hi all,
I want to model a multi-level workflows:
+ top level workflow will perform "call-activity" (this will create child process instance).
+ If the child process instance is "DELETED", the parent "call-activity" will wait forever.
What I want is:
+ the parent process instance to continue after the child process instance is deleted.
QUESTIONS:
How to accomplish that?
Can I use some API to implement that? If yes, what API?
Can I use additional BPMN constructs to implement that? If yes, what constructs?
If the above do not exist, are there other approaches?
Thanks in advance for your help.
Steve
I want to model a multi-level workflows:
+ top level workflow will perform "call-activity" (this will create child process instance).
+ If the child process instance is "DELETED", the parent "call-activity" will wait forever.
What I want is:
+ the parent process instance to continue after the child process instance is deleted.
QUESTIONS:
How to accomplish that?
Can I use some API to implement that? If yes, what API?
Can I use additional BPMN constructs to implement that? If yes, what constructs?
If the above do not exist, are there other approaches?
Thanks in advance for your help.
Steve
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2015 03:01 AM
Hi Steve,
I would recommend to do not delete child process. Instead of delete child (or external system) could throw a message to inform parent to cancel the child. Parent's call activity can catch the message and continue in the execution.
Regards
Martin
I would recommend to do not delete child process. Instead of delete child (or external system) could throw a message to inform parent to cancel the child. Parent's call activity can catch the message and continue in the execution.
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2015 11:01 AM
First, thanks Martin for the suggestion.
Let me make sure I understand:
+ I will have a message boundary event attached to the call-activity in the top level process
+ I can use the REST API to send the message to the call-activity by the execution ID
+ The call-activity will get "cancelled" by default, and move on to the next "step" in the process
(or do I need to specify explicitly a path for the message event in BPMN?)
Is that about right?
How happens to the child process instance after the call-activity is cancelled? Does it hang around? Do I need to "delete" it?
Thanks,
Steve
Let me make sure I understand:
+ I will have a message boundary event attached to the call-activity in the top level process
+ I can use the REST API to send the message to the call-activity by the execution ID
+ The call-activity will get "cancelled" by default, and move on to the next "step" in the process
(or do I need to specify explicitly a path for the message event in BPMN?)
Is that about right?
How happens to the child process instance after the call-activity is cancelled? Does it hang around? Do I need to "delete" it?
Thanks,
Steve

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2015 05:51 PM
I tried it out.
I have to attach the additional path to the message boundary event otherwise it will just hang in the associated call-activity; it will not transit to the next activity.
Also the child process instance will be gone.
I hope in the history table there will still be history for the child process instance and its associated activities. Will it?
Thanks.
Steve
I have to attach the additional path to the message boundary event otherwise it will just hang in the associated call-activity; it will not transit to the next activity.
Also the child process instance will be gone.
I hope in the history table there will still be history for the child process instance and its associated activities. Will it?
Thanks.
Steve
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2015 03:11 AM
Yes, depends on the history level. 🙂
Martin
Martin
