Replies: 1 comment 2 replies
-
HI @thomasdv, I don't clearly understand the problem. After collecting the external feedback you need to call the resume method, otherwise the workflow is simply starting. It's on your application to submit the interruption feedback. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm playing with workflows (using nodes basically as wrappers for specialized chat agents) and I'm having trouble understanding the proper way to handle workflow resumption. The documentation is not very clear on this subject.
As far as I understand it, everytime I receive a message from user, I need to initialize the workflow using:
And then:
$workflow->run($freshlyCreatedState)
$workflow->resume($responseToInterruption)
However, I can't find a simple way to determine whether the current workflow (with a specific ID) is currently in an interrupted state or if it's a fresh workflow that needs to be started from scratch.
Am I missing something? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions