sequential-workflow-machine
sequential-workflow-machine copied to clipboard
Async Workflows
Hey! Does this support workflows that are async, for example a chatbot. Where the workflow state can be persisted, then resumed?
Hello @atymic!
Now the engine doesn't support it. But you may achieve it in hacky way. Your activity should throw a well known error. This will stop the workflow machine. Then you can dump the state to your storage. To resume the workflow you need to pass the initialStepId parameter to WorkflowMachineBuilder and reuse the previous state.
I think 0.7.1 provides some solution for this problem.