Hi Grant, thanks for your directions and tips.
We solved the situation in another way and it worked as expected.
Before, the variable's value was be setting near to the end of flow, so it was not getting mapped with the instance.
We bring the variable's value setting task before the task that is being used to mapping the variables of the Coach for the instance number. It worked.
For your better understanding see the screen capture.
Thanks again for your support !
Rgds, M
------------------------------
Marco Mafra
------------------------------
Original Message:
Sent: Tue June 03, 2025 08:25 AM
From: Grant Taylor
Subject: A variable's value was populated in a coach flow. Later in the main flow, the same variable's value is empty.
One thing that your video doesn't show is the data mapping for the user task. You have a process with a user task that is implemented by a Client-side Human Service. The CSHS declares its own inputs/outputs, and these must be mapped by the activity in the process. Here:

Clicking the Open... button for the mapping will take you to a dialog where you can map the output variables of the CSHS back into the process. In your CSHS, the "solucaoTerceiros.auditoriaStatus" variable must be declared as an output variable.

------------------------------
Grant Taylor
Original Message:
Sent: Mon June 02, 2025 11:06 AM
From: Marco Mafra
Subject: A variable's value was populated in a coach flow. Later in the main flow, the same variable's value is empty.
Hi people ! We are using here CP4BA 24.0.1 (SAAS).
For a specified process, We created and stand alone coach (started via URL). Based on the informations filled in the coach, an string variable (tw.local.solucaoTerceiros.auditoriaStatus) is populated with "Pedente" or "Não Requerida". As soon user finish this task on this coach, the main process flow is starded (under same instance number) and it receives all the variables filled in the coach. The flow of the main process depends of the value of the "tw.local.solucaoTerceiros.auditoriaStatus". For some how, the value of this variable is being receiving empty and so, the flow of main process goes for a wrong path. All other variables has been received with values filled in the coach. No error mesages and data/variable mapping seens to be fine.
Screen capture video attached.
Does anyone have a tip or direction to fix that ?
Rgds, M
------------------------------
Marco Mafra
------------------------------