-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Workflow] Add support for getting updated context after a transition #41292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4ceb187
to
a5052f8
Compare
This comment has been minimized.
This comment has been minimized.
5.3 | ||
--- | ||
|
||
* Deprecate `InvalidTokenConfigurationException` | ||
* Added `MermaidDumper` to dump Workflow graphs in the Mermaid.js flowchart format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert all unrelated changes here. We don't need/want to update all the old changelogs. The convention changed only for new entries.
} | ||
|
||
/** | ||
* Returns the context after the subject has transitionend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Returns the context after the subject has transitionend. | |
* Returns the context after the subject has transitioned. |
Thank you @lyrixx. |
a5052f8
to
571c75e
Compare
I have a listener that lock the transition. Then, I need to give this
lock to my consumer. ATM, there is no easy way to pass a new resource
from a listener to the caller. I could add a new
tmpLock
property on mysubject (this is what I did temporary), but I'm not confortable with
this hack.
By adding the final context (it could be updated, that the point of
listener) to the marking, I could easily get data back.
Finally, the PHP doc of WorkflowInterface::apply() tells us:
* @return Marking The new Marking
So I think it's legit to add also the new context