I have a main workflow (Main). and one child workflow(Child).
- Main starts the Child wf.
- Child sends progress signal to Main (parent)
- In Main, signal handler starts an activity.
- Child has completed it’s work (function)
- Main has completed it’s work (function)
but activity that started in signal handler is in SCHEDULED
state only. it’s not started. also i have worker registered for this activity.
maxim
2
Workflow completes as soon as the main workflow method returns. So make sure that it doesn’t complete before the activity completes.
Thanks @maxim.
But, I have put this condition in the end of workflow method
Workflow.await(() -> this.isOrderInTerminalState);
and I update this variable this.isOrderInTerminalState
just after calling the activity
maxim
4
Then you want to check the history events related to that activity and the state of the activity in the pending activities list.