Skip to content
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

Clarify README how Token is used and tracked by Article #6

Open
johnkary opened this issue Jul 1, 2015 · 1 comment
Open

Clarify README how Token is used and tracked by Article #6

johnkary opened this issue Jul 1, 2015 · 1 comment

Comments

@johnkary
Copy link

johnkary commented Jul 1, 2015

I'm having trouble figuring out how my domain object should implement the "token" concept. The current README shows Article->getToken() as a method, but it isn't clear to me from the documentation how that token is used by the workflow and its nodes.

Does Article->getToken() return a unique identifier for the Node the Article is currently at? Would it return a value like article.draft or article.deleted ?

If it is the current workflow state, in which example class would you set the token via Article->setToken($currentNodeToken)?

@trompette
Copy link
Contributor

This is exactly the idea: the token value is the name of the node the instance is currently on.

The setToken() method should be called in every workflow event listener.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants