workflow.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. framework:
  2. workflows:
  3. administrative_state:
  4. type: 'state_machine'
  5. marking_store:
  6. type: 'single_state'
  7. arguments:
  8. - 'administrativeState'
  9. supports:
  10. - FTTHBundle\Entity\ONU
  11. places:
  12. - active
  13. - pre_notice
  14. - suspend
  15. - cancelled
  16. - not_provisioned
  17. - deleted
  18. transitions:
  19. active:
  20. from: [pre_notice,suspend,cancelled,not_provisioned,deleted]
  21. to: active
  22. pre_notice:
  23. from: [active,suspend,cancelled,not_provisioned,deleted]
  24. to: pre_notice
  25. suspend:
  26. from: [active,pre_notice,cancelled,not_provisioned,deleted]
  27. to: suspend
  28. cancel:
  29. from: [active,pre_notice,suspend,not_provisioned,deleted]
  30. to: cancelled
  31. not_provisioned:
  32. from: [active,pre_notice,suspend,cancelled,deleted]
  33. to: not_provisioned
  34. delete:
  35. from: [active,suspend,pre_notice,cancelled,not_provisioned]
  36. to: deleted
  37. transition_state:
  38. type: 'state_machine'
  39. marking_store:
  40. type: 'single_state'
  41. arguments:
  42. - 'transitionState'
  43. supports:
  44. - FTTHBundle\Entity\ONU
  45. places:
  46. - pending
  47. - process
  48. - fail
  49. - success
  50. transitions:
  51. pending_to_process:
  52. from: pending
  53. to: process
  54. process_to_fail:
  55. from: process
  56. to: fail
  57. process_to_success:
  58. from: process
  59. to: success
  60. fail_to_pending:
  61. from: fail
  62. to: pending
  63. success_to_pending:
  64. from: success
  65. to: pending