How can I modify it to listen for an external event that will skip the pending activities and jump directly to the END one?
In other words, how to model complex FSMs when some of the state transitions (fast-forward, or continue-as-new) are triggered externally and I do not want to wrap every activity call with yield task.when_any?
Let's assume the following orchestration:
How can I modify it to listen for an external event that will skip the pending activities and jump directly to the
END
one?In other words, how to model complex FSMs when some of the state transitions (fast-forward, or continue-as-new) are triggered externally and I do not want to wrap every activity call with
yield task.when_any
?