I'm trying to have workflow where will wait for a user interaction. So I was planing to save the state of the flow in a database, and then when the user make his interaction, i can load the state from database and then run this next task.
I'm trying to achieve this using the getState and recover.
Hi there!
I'm trying to have workflow where will wait for a user interaction. So I was planing to save the state of the flow in a database, and then when the user make his interaction, i can load the state from database and then run this next task.
I'm trying to achieve this using the getState and recover.
https://github.com/mariohmol/bpmn-engine/blob/master/docs/examples/server.js#L31
Using the wait user example: https://github.com/paed01/bpmn-engine/blob/master/docs/Examples.md#listen-for-events
STEPS : What I'm doing:
listener.once('wait',
I tested using
const post = api.getPostponed();
but is not returning me a task that i can send a signal to continue the flow.So i think there is 2 main 'bugs' to investigate:
To make it easy to test, in my repo you can fork and run
npm run examples startResume
In VSCode u can run the Example task to debug this.Any ideas on how i can achieve this?
thanks