Hi all,
I am using a!startProcess in a Web API.
In the process model, I have a Write to Data Store Entity service that saves the output to a process variable.
However, when I access the process variable in a!startProcess onSuccess through fv!processInfo.pv, the value of the process variable is not updated--specifically, the ID field is blank.
Any advice on how I can get the updated value of the process variable?
Thanks!
Discussion posts and replies are publicly visible
@jraquino I guess in your process model somewhere you are using write to data store entity smart service. Go to node outputs and save the CDT back. If you do this your primary key/id will be updated. You can access the same using fv!processInfo.pv. Keep in mind activity-chaining is complete.
This smart service follows activity-chaining, completing only when the activity chain is complete or broken. The smart service then returns the process variables as of the completion of activity chaining through the processInfo.pv output.
processInfo.pv