lyrixx / SFLive-Paris2016-Workflow

Demo app for the new symfony/workflow component
https://s.lyrixx.info/workflow-demo
176 stars 41 forks source link

OR in From #3

Closed rufinus closed 8 years ago

rufinus commented 8 years ago

Hi,

is it not possible to have an OR in from of the transistion?

for example:

        client:
            marking_store:
                type: property_accessor
                arguments:
                    - state
            supports:
                - AppBundle\Model\Entity\Client
            places:
                - new
                - active
                - inactive
                - suspended
            transitions:
                activate:
                    from: [new, inactive, suspended]
                    to: active
                deactivate:
                    from: [new, active]
                    to: inactive
                suspend:
                    from: active
                    to: suspended

As it stands now, it cant work, as the marking has to be new, inactive and suspended to be activated.

How would i have multiple from as or without having multiple transistions i have to check/call?

rufinus commented 8 years ago

nevermind, found the answer in the MR for the Doc.

With the configuration above we allow an object in place draft or +rejected to be moved to review. If the marking store had been of +type scalar the object had to be in both places.