I have created a process which has a call activity that calls a “sub process” with three user tasks.
Is there a way that the main process can see the variables created inside the sub process before it (the sub process) is completed?
I have configured in and out propagation. But the variables I am creating by completing the user tasks inside the sub process are available to the main process only when the instance “exits” the called activity.
Basically, I wanted to use one request to get all the process instance variables.
So I am using /history/variable-instance?processInstanceIdIn={processInstanceIdIn}
In some cases (after the completion of the sub process) I must use the super process instance id, but when the sub process is not yet completed, I must use the sub process instance id as parameter in the request.
So I was wandering if there was a way to avoid this.
I believe using business key can serve your needs so you can always query using a single business key value and results from both instances (calling and called) should be returned.
@hassang I have thought this option since I am using business key, but the problem is that in the request I am using: Get Variable Instances (history/variable-instance)
In my project,
I am running Camunda with the Docker installation.
And I am using .NET as a backend service that makes calls to the Camunda API requests.
I am not using spring boot, so I don’t know if this is possible in my implementation.