paed01 / bpmn-engine

BPMN 2.0 execution engine. Open source javascript workflow engine.
MIT License
860 stars 166 forks source link

Could not resume the process. Throws Error: Nothing to resume #155

Closed BaluprasathSBP closed 2 years ago

BaluprasathSBP commented 2 years ago

Hi,

I have a process where I saved the state in wait event of user task and restarted the application. when restarted, using the saved state tried to recover the engine and resume it, But the following error happens Error: Nothing to resume. I tried for multiple processes, still the result is same.

Thanks,

BaluprasathSBP commented 2 years ago

@paed01 We could resolve the previous issue. Now, we have got the issue "Cannot read properties of undefined (reading 'id')".

We are trying to read the state from json file and recover the state.

I can recover the engine from using state if I use the state object directly without saving it. Should there be any options added while serializing and de-serializing JSON of the State object. Please advise. Thanks