Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Workflow] Added failing test #19607

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

Closed
wants to merge 2 commits into from

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Aug 12, 2016

Q A
Branch? "master"
Bug fix? no, I show a bug
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets related to #19605
License MIT
Doc PR

This PR adds a test for the Workflow class in the Workflow component. The test is added to show that the current implementation is broken (or at least suboptimal).

I describe the issue in #19605

@fabpot
Copy link
Member

fabpot commented Aug 13, 2016

ping @lyrixx

@lyrixx
Copy link
Member

lyrixx commented Aug 15, 2016

Hello @fabpot ; Dont worry, I saw it ;) but the main discussion is happening in #19605

@Nyholm
Copy link
Member Author

Nyholm commented Aug 16, 2016

Thank you @lyrixx for having patient with me. This PR provides an invalid test case as you explained in the related issue.

@Nyholm Nyholm closed this Aug 16, 2016
fabpot added a commit that referenced this pull request Nov 7, 2016
…yholm, lyrixx)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[Workflow] Make the Workflow support State Machines

| Q | A |
| --- | --- |
| Branch? | "master" |
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | yes, getEnabledTransistions does not return an assoc array. |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | Fixes #19605, Closes #19607 |
| License | MIT |
| Doc PR | symfony/symfony-docs#6871 |

While researching for the docs of the component I've found that:
- A Workflow is a subclass of a Petri net
- A state machine is subclass of a Workflow
- A state machine must not be in many places simultaneously.

This PR adds a new interface to the marking store that allow us to validate the transition to true if ANY _input_ (froms) place matches the _tokens_ (marking). The default behavior is that ALL input places must match the tokens.

Commits
-------

9e49198 [Workflow] Made the code more robbust and ease on-boarding
bdd3f95 Make the Workflow support State Machines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants