@startuml title Stop running and pending tasks (*) --> "Get execute_sequence tasks ids from DB" --> if "An alert was received" --> [Yes] "Get also execute_plan tasks ids" --> "Revoke selected tasks" else --> [No] "Revoke selected tasks" endif --> (*) @enduml