You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.6 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. framework:
  2. workflows:
  3. task_lifecycle:
  4. type: state_machine
  5. audit_trail:
  6. enabled: true
  7. marking_store:
  8. type: 'method'
  9. property: 'status'
  10. supports:
  11. - App\Entity\Task
  12. initial_marking: !php/const App\Entity\Task::STATUS_TODO
  13. places:
  14. !php/const App\Entity\Task::STATUS_TODO:
  15. metadata:
  16. title: 'À faire'
  17. color: danger
  18. locking: false
  19. !php/const App\Entity\Task::STATUS_DOING:
  20. metadata:
  21. title: 'En cours'
  22. color: warning
  23. locking: true
  24. !php/const App\Entity\Task::STATUS_DONE:
  25. metadata:
  26. title: 'Terminé'
  27. color: success
  28. locking: false
  29. transitions:
  30. !php/const App\Entity\Task::TRANSITION_START:
  31. from: !php/const App\Entity\Task::STATUS_TODO
  32. to: !php/const App\Entity\Task::STATUS_DOING
  33. metadata:
  34. title: 'Commencer la tâche'
  35. route: 'app_task_start'
  36. lock: true
  37. unlock: false
  38. !php/const App\Entity\Task::TRANSITION_FINISH:
  39. from: !php/const App\Entity\Task::STATUS_DOING
  40. to: !php/const App\Entity\Task::STATUS_DONE
  41. metadata:
  42. title: 'Terminer la tâche'
  43. route: 'app_task_finish'
  44. lock: false
  45. unlock: true
  46. !php/const App\Entity\Task::TRANSITION_CANCEL:
  47. from: !php/const App\Entity\Task::STATUS_DOING
  48. to: !php/const App\Entity\Task::STATUS_TODO
  49. metadata:
  50. title: 'Abandonner la tâche'
  51. route: 'app_task_cancel'
  52. lock: false
  53. unlock: true
  54. !php/const App\Entity\Task::TRANSITION_RESET:
  55. from: !php/const App\Entity\Task::STATUS_DONE
  56. to: !php/const App\Entity\Task::STATUS_TODO
  57. metadata:
  58. title: 'Recommencer la tâche'
  59. route: 'app_task_reset'
  60. lock: false
  61. unlock: false