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.

65 lines
2.7 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 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. short: 'Commencer'
  36. route: 'app_task_start'
  37. lock: true
  38. unlock: false
  39. !php/const App\Entity\Task::TRANSITION_FINISH:
  40. from: !php/const App\Entity\Task::STATUS_DOING
  41. to: !php/const App\Entity\Task::STATUS_DONE
  42. metadata:
  43. title: 'Terminer la tâche'
  44. short: 'Terminer'
  45. route: 'app_task_finish'
  46. lock: false
  47. unlock: true
  48. !php/const App\Entity\Task::TRANSITION_CANCEL:
  49. from: !php/const App\Entity\Task::STATUS_DOING
  50. to: !php/const App\Entity\Task::STATUS_TODO
  51. metadata:
  52. title: 'Abandonner la tâche'
  53. short: 'Abandonner'
  54. route: 'app_task_cancel'
  55. lock: false
  56. unlock: true
  57. !php/const App\Entity\Task::TRANSITION_RESET:
  58. from: !php/const App\Entity\Task::STATUS_DONE
  59. to: !php/const App\Entity\Task::STATUS_TODO
  60. metadata:
  61. title: 'Recommencer la tâche'
  62. short: 'Recommencer'
  63. route: 'app_task_reset'
  64. lock: false
  65. unlock: false