Workflows result
👋 Is it possible to get a result from creating a workflow? Something like this?
let result = this.env.MYWORKFLOW.create({
params: { id },
})
Would save me from putting stuff in a DB
2 Replies
Not sure if they mean it, just quessing. But potentially the final state, after the workflow finished running.
If MYWORKFLOW resolves into JSON ... would be cool if I could return it
If guess I'd like a workflow to wait for another workflow to finish, and also get access to the result
let json = await step.do(async () => {
let resultJSON = await this.env.MYWORKFLOW.create();
return resultJSON;
});
(PS: I realise the create() will return details/status of the workflow ... in the above I am trying to get the result of the workflow after it's finished running)