Add documentation for OutProperties support 45/136945/1
authorFrancescoFioraEst <francesco.fiora@est.tech>
Fri, 5 Jan 2024 16:07:11 +0000 (16:07 +0000)
committerFrancesco Fiora <francesco.fiora@est.tech>
Mon, 8 Jan 2024 10:15:48 +0000 (10:15 +0000)
Add documentation for OutProperties instance
in restart scenario and deploy.

Issue-ID: POLICY-4912
Change-Id: Ie492e8f956af439c1a595dbe4217e14e49eedbd5
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
docs/clamp/acm/acm-participant-guide.rst

index c5623b2..9b8c03f 100755 (executable)
@@ -177,11 +177,24 @@ The following code is an example how to update the property 'myProperty' and sen
 
 In/Out instance Properties
 --------------------------
+  The 'In/Out Properties' are stored into the instance elements, so each element has its own In/Out Properties.
+
   The 'In Properties' could be created or updated by ACM-runtime. Participants will receive that Properties during deploy and update events.
 
   The 'Out Properties' could be created or updated by participants. ACM-runtime will receive that Properties during ParticipantStatus event.
-  The participant can trigger this event using the method sendAcElementInfo.
-  The 'useState' and 'operationalState' can be used as well.
+  The participant can trigger this event using the method sendAcElementInfo. The 'useState' and 'operationalState' can be used as well.
+  The 'Out Properties' could be **cleaned**:
+
+  * by the participant using the method sendAcElementInfo
+  * by intermediary automatically during deleting of the instance
+  * by an update when the instance is in UNDEPLOYED state (changing the elementId)
+
+  The 'Out Properties' will be **not cleaned** by intermediary:
+
+  * during DEPLOIYNG (Out Properties will be take from last changes matching by elementId)
+  * during UNDEPLOING
+  * during LOCKING/UNLOCKING
+  * during UPDATING/MIGRATING
 
   Is allowed to the participant to read all In/Out Properties and state of all instances handled by the participant using the method getAutomationCompositions.
   The following code is an example how to update the property 'myProperty' and send to ACM-runtime:
@@ -196,6 +209,7 @@ In/Out instance Properties
 Restart scenario
 ----------------
   Restart methods handle the scenario when participant shut down and restart.
+  During RESTARTING, compositions and instances will be stored in participant memory with In/Out Properties, 'useState' and 'operationalState'.
   The method handleRestartComposition will be called for each composition and will be present the 'state' at the time the participant shut down.
   The method handleRestartInstance will be called for each instance element and will be present the 'deployState' and the 'lockState' at the time the participant shut down.