Handling sync and async use cases in single process

cancel
Showing results for 
Search instead for 
Did you mean: 
markm
Member II

Handling sync and async use cases in single process

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!  

1 Reply
cjose
Senior Member II

Re: Handling sync and async use cases in single process

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.