Skip to content

Instantly share code, notes, and snippets.

@kovax
Last active September 22, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kovax/f5a862d0bb01c192a6c34f0259f3b469 to your computer and use it in GitHub Desktop.
Save kovax/f5a862d0bb01c192a6c34f0259f3b469 to your computer and use it in GitHub Desktop.
The StateMachine specification usable with the https://github.com/cristal-ise/trigger project
@startuml
[*] -> Waiting
Waiting --> Started: Start
Started --> Suspended : Suspend
Suspended --> Started : Resume
Waiting --> Finished : Done
Started --> Finished : Complete
Finished --> Finished : Proceed
Started --> Started : Warning
Started --> Paused : Timeout
Paused --> Started : Resolved
Paused --> Finished : Interrupted
note as N1
List of Transition can have Outcome
- Done
- Complete
- Suspend
- Warning
- Timeout
Resume may be performed by any Admin role
but it preservers Agent reservation.
end note
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment