Replies: 3 comments 1 reply
-
|
I had the same interrogations, and I don't see how it could work with https://github.com/neuron-core/neuron-ai/releases/tag/2.2.7 |
Beta Was this translation helpful? Give feedback.
-
|
Fixed in the 2.4.2 It stores the original state class in a dedicated field: https://github.com/neuron-core/neuron-ai/blob/2.x/src/Workflow/WorkflowInterrupt.php#L47 Use it on deserialization to restore the original object: https://github.com/neuron-core/neuron-ai/blob/2.x/src/Workflow/WorkflowInterrupt.php#L62 Here is a test to verify it works: https://github.com/neuron-core/neuron-ai/blob/2.x/tests/Workflow/WorkflowInterruptTest.php#L243 |
Beta Was this translation helpful? Give feedback.
-
|
I test it @ilvalerione it works fine, thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @ilvalerione ,
I made me this helper Class to have to access common values in the WorkflowState:
For a more structured way to organize data in the WorkflowState. But I would prefer this way:
But this does not work, because WorkflowInterrupt has this code
which did not allow to use my own State. Would it be helpfull to allow own WorkflowState Objects?
Greetings Thomas
Beta Was this translation helpful? Give feedback.
All reactions