Synchronizing two or more service tasks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2016 09:10 AM
Hello,
I'm fairly new to Activiti so please go easy.
I have a process containing a starter, branching into 2 separate service tasks running asynchronously.
I need to make my process end after both have finished, basically if serviceTask1 finishes first, it should wait for the second and vice versa, but I can't really figure out how to do this.
Any suggestions?
Thanks,
Mihai
I'm fairly new to Activiti so please go easy.
I have a process containing a starter, branching into 2 separate service tasks running asynchronously.
I need to make my process end after both have finished, basically if serviceTask1 finishes first, it should wait for the second and vice versa, but I can't really figure out how to do this.
Any suggestions?
Thanks,
Mihai
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2016 08:53 AM
Hi Mihai!
Generally process does not end until all executions end. So if you start with ParallelGateway and 2 service tasks after it, you are ok simply ending each line of execution with normal endEvent. If you need additional work after both service tasks, add parallelGateway after them and continue process from this point. Take a look at activiti user guide, similar case is explained in parallelGateway description.
Generally process does not end until all executions end. So if you start with ParallelGateway and 2 service tasks after it, you are ok simply ending each line of execution with normal endEvent. If you need additional work after both service tasks, add parallelGateway after them and continue process from this point. Take a look at activiti user guide, similar case is explained in parallelGateway description.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2016 09:24 AM
Hi Warper,
That actually makes a lot of sense…don't know why I haven't tried this approach yet.
Thanks a lot for the reply.
That actually makes a lot of sense…don't know why I haven't tried this approach yet.
Thanks a lot for the reply.

