summaryrefslogtreecommitdiffstats
path: root/docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2023-04-03 15:22:53 +0100
committersaul.gill <saul.gill@est.tech>2023-04-03 15:55:43 +0100
commitdba8c6debf395bb952e28b91b4c872045d52eccf (patch)
tree80c6dc60863c702652e17fdd5b4d903620c7491e /docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml
parenta174cadc174377c9c38df860d7e37b5799067bc7 (diff)
Updated participant protocol docs
Added new puml for state and update diagrams Updated diagrams Added table as csv - easier for updating later Issue-ID: POLICY-4602 Change-Id: Iaca291057688b0a856192036816685d3b9676b4f Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml')
-rw-r--r--docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml52
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml b/docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml
new file mode 100644
index 00000000..8429c227
--- /dev/null
+++ b/docs/clamp/acm/api-protocol/puml/ParticipantHandleStateChange.puml
@@ -0,0 +1,52 @@
+@startuml
+
+(*) --> "Process State Change Message"
+
+if "All Automation Composition Elements with my Participant ID processed?" then
+ --> [yes] "Send State Change Ack Message"
+ --> (*)
+else
+ --> [no] "Process next Automation Composition Element with my ID"
+ if "State Change Message Start Phase equals Automation Composition Element start phase" then
+ [true] if "Current State is DEPLOYED?" then
+ [true] if "Change to UNDEPLOYED?" then
+ --> [true] "Change Automation Composition Element to state UNDEPLOYED"
+ --> "Wait for DEPLOYED->UNDEPLOYED State Change to complete"
+ if "State Change?" then
+ --> [success] "Record Success for State Change Ack message"
+ --> "Process State Change Message"
+ else
+ --> [fail] "Record Error for State Change Ack message"
+ --> "Process State Change Message"
+ endif
+ else
+ --> [false] "Record Error for State Change Ack message"
+ --> "Process State Change Message"
+ endif
+ else
+ [false] if "Current State is UNDEPLOYED?" then
+ [true] if "Change to DEPLOYED?" then
+ --> [true] "Change Automation Composition Element to state DEPLOYED"
+ --> "Wait for UNDEPLOYED->DEPLOYED State Change to complete"
+ if "State Change?" then
+ --> [success] "Record Success for State Change Ack message"
+ --> "Process State Change Message"
+ else
+ --> [fail] "Record Error for State Change Ack message"
+ --> "Process State Change Message"
+ endif
+ else
+ --> [false] "Record Error for State Change Ack message"
+ --> "Process State Change Message"
+ endif
+ else
+ --> [false] "Record Error for State Change Ack message"
+ --> "Process State Change Message"
+ endif
+ endif
+ else
+ --> [false] "Skip Automation Composition Element"
+ --> "Process State Change Message"
+endif
+
+@enduml