workflow.yaml 1.2 KB

12345678910111213141516171819202122232425262728
  1. framework:
  2. workflows:
  3. countdown:
  4. type: 'state_machine'
  5. audit_trail:
  6. enabled: true
  7. marking_store:
  8. type: 'method'
  9. property: 'state'
  10. supports:
  11. - App\Entity\Counter
  12. initial_marking: !php/const App\Entity\Counter::STATE_READY
  13. places:
  14. - !php/const App\Entity\Counter::STATE_READY
  15. - !php/const App\Entity\Counter::STATE_STARTED
  16. - !php/const App\Entity\Counter::STATE_COMPLETED
  17. transitions:
  18. !php/const App\Entity\Counter::TRANSITION_TO_STARTED:
  19. from: !php/const App\Entity\Counter::STATE_READY
  20. to: !php/const App\Entity\Counter::STATE_STARTED
  21. !php/const App\Entity\Counter::TRANSITION_TO_COMPLETED:
  22. from: !php/const App\Entity\Counter::STATE_STARTED
  23. to: !php/const App\Entity\Counter::STATE_COMPLETED
  24. !php/const App\Entity\Counter::TRANSITION_TO_READY:
  25. from: !php/const App\Entity\Counter::STATE_COMPLETED
  26. to: !php/const App\Entity\Counter::STATE_READY