...
State Machine for Automation Compositions
Current State Machine
...
- ACM in UNINITIALIZED state: all elements of a ACM are in UNINITIALIZED state, all applications are not deployed and policy types are not deployed and not present in Api.
- User trigger to move ACM from UNINITIALIZED to PASSIVE: all elements of a ACM are in UNINITIALIZED_TO_PASSIVE, all applications are getting deployed and configured, and policy types are getting created in Api and deployed with Pap.
- Element in PASSIVE state:
- ks8: application is deployed.
- policy: a policy type is create in Api and deployed with Pap.
- http: application is configured.
- ACM in PASSIVE state: all applications are deployed and configured.
- User trigger to move ACM from PASSIVE to UNINITIALIZED: all elements of a ACM are in PASSIVE_TO_UNINITIALIZED, all applications are getting undeployed, and policy types are undeployed with Pap and delete in Api.
PlantUML Macro |
---|
@startuml
'https://plantuml.com/state-diagram
state UNINITIALIZED
state UNINITIALIZED_TO_PASSIVE
state PASSIVE_TO_UNINITIALIZED
state PASSIVE
[*] --> UNINITIALIZED
UNINITIALIZED --> UNINITIALIZED_TO_PASSIVE
PASSIVE_TO_UNINITIALIZED --> UNINITIALIZED
PASSIVE --> PASSIVE_TO_UNINITIALIZED
UNINITIALIZED_TO_PASSIVE --> PASSIVE
@enduml |
Proposed State Machine
PlantUML Macro |
---|
@startuml 'https://plantuml.com/state-diagram state UNINITIALIZED state UNINITIALIZED_TO_PASSIVE state PASSIVE_TO_UNINITIALIZED state PASSIVE state PASSIVE_TO_RUNNING state RUNNING_TO_PASSIVE state RUNNING state RUNNING_TO_PASSIVE_ERROR state PASSIVE_TO_RUNNING_ERROR state RUNNING state RUN_ERROR [*] --> UNINITIALIZED UNINITIALIZED --> UNINITIALIZED_TO_PASSIVE PASSIVE_TO_UNINITIALIZED --> UNINITIALIZED UNINITIALIZED_TO_PASSIVE --> PASSIVE PASSIVE --> PASSIVE_TO_RUNNING PASSIVE --> PASSIVE_TO_UNINITIALIZED PASSIVE_TO_RUNNING --> RUNNING PASSIVE_TO_RUNNING --> PASSIVE_TO_RUNNING_ERROR PASSIVE_TO_RUNNING_ERROR --> PASSIVE_TO_RUNNING RUNNING --> RUNNING_TO_PASSIVE RUNNING_TO_PASSIVE --> PASSIVE RUNNING_TO_PASSIVE --> RUNNING_TO_PASSIVE_ERROR RUNNING --> RUN_ERROR RUN_ERROR --> RUNNING RUN_ERROR --> RUNNING_TO_PASSIVE RUNNING_TO_PASSIVE_ERROR --> RUNNING_TO_PASSIVE @enduml |
...