framework: workflows: task_lifecycle: type: state_machine audit_trail: enabled: true marking_store: type: 'method' property: 'status' supports: - App\Entity\Task initial_marking: !php/const App\Entity\Task::STATUS_TODO places: !php/const App\Entity\Task::STATUS_TODO: metadata: title: 'workflow.place.todo' # À faire' color: danger locking: false !php/const App\Entity\Task::STATUS_DOING: metadata: title: 'workflow.place.doing' # En cours' color: warning locking: true !php/const App\Entity\Task::STATUS_DONE: metadata: title: 'workflow.place.done' # Terminé' color: success locking: false transitions: !php/const App\Entity\Task::TRANSITION_START: from: !php/const App\Entity\Task::STATUS_TODO to: !php/const App\Entity\Task::STATUS_DOING metadata: title: 'workflow.transition.start_task' # 'Commencer la tâche' short: 'workflow.transition.start' # 'Commencer' accesskey: 'S' route: 'app_task_start' lock: true unlock: false !php/const App\Entity\Task::TRANSITION_FINISH: from: !php/const App\Entity\Task::STATUS_DOING to: !php/const App\Entity\Task::STATUS_DONE metadata: title: 'workflow.transition.finish_task' # 'Terminer la tâche' short: 'workflow.transition.finish' # 'Terminer' accesskey: 'F' route: 'app_task_finish' lock: false unlock: true !php/const App\Entity\Task::TRANSITION_CANCEL: from: !php/const App\Entity\Task::STATUS_DOING to: !php/const App\Entity\Task::STATUS_TODO metadata: title: 'workflow.transition.cancel_task' # 'Abandonner la tâche' short: 'workflow.transition.cancel' #'Abandonner' accesskey: 'S' route: 'app_task_cancel' lock: false unlock: true !php/const App\Entity\Task::TRANSITION_RESET: from: !php/const App\Entity\Task::STATUS_DONE to: !php/const App\Entity\Task::STATUS_TODO metadata: title: 'workflow.transition.reset_task' #'Recommencer la tâche' short: 'workflow.transition.reset' #'Recommencer' accesskey: 'S' route: 'app_task_reset' lock: false unlock: false