Lets say I have a sample workflow that does the following:
- Receive something
- Run long activity1 (no user input)
- Run long activity2 (no user input)
- Send something
Usually activity2 should run automatically after activity1 is finished, but I would like to prevent the execution of activity2 until the workflow gets the go ahead from a user. While activity1 is running, I want to be able to tell the workflow to pause after it is done activity1 and continue with activity2 when told.
I guess I need a flag that the workflow can check before it run activity2 but how can I update this flag while activity1 is running?
Thanks