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: 'À faire'
|
|
color: danger
|
|
!php/const App\Entity\Task::STATUS_DOING:
|
|
metadata:
|
|
title: 'En cours'
|
|
color: warning
|
|
!php/const App\Entity\Task::STATUS_DONE:
|
|
metadata:
|
|
title: 'Terminé'
|
|
color: success
|
|
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: 'Commencer la tâche'
|
|
route: 'app_task_start'
|
|
!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: 'Terminer la tâche'
|
|
route: 'app_task_finish'
|
|
!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: 'Abandonner la tâche'
|
|
route: 'app_task_cancel'
|
|
!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: 'Recommencer la tâche'
|
|
route: 'app_task_reset'
|