Handling sync and async use cases in single process

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2017 04:22 PM
Hi,
I just started using Activiti, I am trying to define the flow for following use case.
When client call my restful service, I call workflow start -> task1 -> tast2 -> task3 -> task4 -> task5 -> end.
All of them are service tasks. Task3 calls another downstream system X.
After task3, I need to give a sync response back to the client based on X system status.
X system update final status through the event (Async flow) after a day, on processing event remaining workflow (task4 -> task5 -> end) need to be executed. What is the best way to define this?
Would really appreciate any help on this!
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2017 07:47 PM
You can use a receive task or an intermediate message catch event after task 3. Then system X can send a message via the api and move from there to next steps.
