From d09be0cb093a1d68b33d4f910619cb476ba63b9e Mon Sep 17 00:00:00 2001 From: Steven Decock Date: Mon, 17 Jun 2024 17:05:06 +0200 Subject: [PATCH] Update launch-process-action.md Add a warning section on this page to clarify the (unexpected) behavior of the Launch Process actions. These actions do not wait for the current transaction to commit before launching the process. So if you update an entity and then launch a process using this action, the process might not yet see the updated values if the process gets started before the transaction commits. I have tested this on our environment and it is 100% reproducible. This nuance can lead to obscure bugs (I speak from experience). --- .../processes/actions-extended/launch-process-action.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/building-apps/processes/actions-extended/launch-process-action.md b/src/building-apps/processes/actions-extended/launch-process-action.md index 137d81191..4a8e8d31e 100644 --- a/src/building-apps/processes/actions-extended/launch-process-action.md +++ b/src/building-apps/processes/actions-extended/launch-process-action.md @@ -11,6 +11,12 @@ figma: Use the **Launch<Process Name>** [process extended action](intro.md) in an action flow to launch the execution of a **Process**. This process is **executed asynchronously**, that is, it is launched and executed independently from the action flow execution, which immediately steps to the next element in the flow. +
+ +**Important!** When using **Launch<Process Name>** in an action, the launched process might start before the current transaction has been committed. This means that any changes that were made during the transaction that launched the process might not yet be visible in that process. For example, if you update an entity and then launch a process using **Launch<Process Name>** by passing that entity's id, that process might not yet see the updated values for that entity, as the transaction updating the entity might not have been committed yet. + +
+ ## Input parameters * **Process Input Parameters**: one parameter for each input parameter in the process definition.