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!