Updated participant protocol docs
[policy/parent.git] / docs / clamp / acm / api-protocol / puml / ParticipantUpdateMessage.puml
1 @startuml
2
3 (*) --> "Process Update Message"
4
5 if "All Automation Composition Elements with my Participant ID processed?" then
6   --> [yes] "Send Update Ack Message"
7   --> (*)
8 else
9   --> [no] "Process next Automation Composition Element with my ID"
10   if "New Automation Composition Element?" then
11         --> [yes] "Create Automation Composition Element"
12         --> "Set Automation Composition Element to state UNDEPLOYED/LOCKED"
13         --> "Order Deployment/Unlock of Automation Composition Element"
14         --> "Pass Parameters to Automation Composition Element"
15         --> "Wait for Deployment/Unlock to complete"
16         if "Automation Composition Element Deployed/Unlocked?" then
17       --> [success] "Record Success for Update Ack message"
18       --> "Process Update Message"
19     else
20       --> [fail] "Delete Automation Composition Element"
21       --> "Record Error for Update Ack message"
22       --> "Process Update Message"
23     endif
24   else
25         --> [no] "Check Automation Composition Element State"
26   endif
27   if "DEPLOYED/UNLOCKED and Automation Composition Version change != patch?" then
28         --> [true] "Record Error for Update Ack message"
29     --> "Process Update Message"
30   else
31         [false] if "NOT DEPLOYED/UNLOCKED and Automation Composition Version change == major?" then
32       --> [true] "Record Error for Update Ack message"
33       --> "Process Update Message"
34   else
35         --> [false] "Pass Changed Parameters to Automation Composition Element"
36         --> "Wait for reconfiguration to complete"
37     if "Automation Composition Element Reconfiguration?" then
38       --> [success] "Record Success for Update Ack message"
39       --> "Process Update Message"
40     else
41       --> [fail] "Roll back reconfiguration"
42       --> "Record Error for Update Ack message"
43       --> "Process Update Message"
44     endif
45   endif
46 endif
47
48 @enduml