I have a process that is triggered by an update in a register of entity A.
This entity has a defined 1 to N relationship with entity B. Although, in practice, it is a one-to-one relationship.
When the process is launched I need to retrieve information that is in entity B. To do this I have executed a task "update related record" as shown in image 1.
I have used this technique several times and it has always worked for me, but this time it did not. The process variables are all empty
I am not able to find what I have not done well.
Trying to see what the error is, I have generated simplified versions of the process.
In the image 2.1 the process is launched and I do some update in the entity B. What I see is that it updates the entity B but the information of the process variable is not carried to the next task.
The image 2.2 is the same with a small modification in the code of the update task V2. It gives me the same result: it updates the entity B but the process variable does not carry the value to the next task.
In the image 2.3 I execute the task as a Script task. In this case I get the process variable to carry the value to the next task. But, logically, this doesn't allow me to read the information from entity B.
How can I solve this? What I need is to read the entity B and carry in the process variables the values I need (when there are many attributes to be retrieved and not just one).
thank you very much
This entity has a defined 1 to N relationship with entity B. Although, in practice, it is a one-to-one relationship.
When the process is launched I need to retrieve information that is in entity B. To do this I have executed a task "update related record" as shown in image 1.
I have used this technique several times and it has always worked for me, but this time it did not. The process variables are all empty
I am not able to find what I have not done well.
Trying to see what the error is, I have generated simplified versions of the process.
In the image 2.1 the process is launched and I do some update in the entity B. What I see is that it updates the entity B but the information of the process variable is not carried to the next task.
The image 2.2 is the same with a small modification in the code of the update task V2. It gives me the same result: it updates the entity B but the process variable does not carry the value to the next task.
In the image 2.3 I execute the task as a Script task. In this case I get the process variable to carry the value to the next task. But, logically, this doesn't allow me to read the information from entity B.
How can I solve this? What I need is to read the entity B and carry in the process variables the values I need (when there are many attributes to be retrieved and not just one).
thank you very much
Comment