Suppose I have a process variable with a value at the Starting of the process model as
pv!variable: ER which returns some list of dict. coming from database table .
now after I complete a task the db table gets updated, now I want pv!variable to be updated with new values from db table.
Can you help ?
How to update it within the process model?
Discussion posts and replies are publicly visible
Hi,
In your W2DSE, You can access the new (updated) value via ac!StoredValue.[property] such as ac!StoredValue.jobId which would save into job id field of the process variable.
Sorry, but I didn't get you
I assume for storing the values into the db you must be using the write to data store entity smart service.If yes , then in the output tab of this write to data store entity smart service you will have an activity class parameter named StoredValues .You can save the value of this parameter in your process variable to get the updated values which are stored in your db table
If not you can add a new script node which fetches data from the db using a!queryEntity and stores the output into your process variable
Hope this helps
Yes, apologies on my delayed response. Rohito0002's answer is clear