Hello All,
I am passing data to gridField using local variable local!taskData.
This local variable local!taskData is updating from the startProcess which is configured on button.Now first time I select the few records and reassign button then the data is updating into local!taskData and able to see the updated data on grid now immediately selecting another records and clicking on reassign then the values where not updating untill unless I refresh the data manually.
Is the onsuccess is considering only once ? Is there any way to consider and run the a!save() everytime on clicking on the button.
a!startProcess( processModel: cons!PM, processParameters: { reassignData: local!UpdatedData }, onSuccess: { a!save( local!success, fv!processInfo.pv.success ), a!save( local!tasksData, rule!L_getBulkTasksToReassign( currentAssign: local!asssignedTo, ) ) } )
Discussion posts and replies are publicly visible
In that process you start, did you enable chaining up to the reassign node? This would make sure that your a!save() calls are only evaluated after the reassignment happened.
Yes I have enabled the chaining on the Reassign task also this node is configured as MNI
On Success : Scirpt Task I am saving the true value into success(process variable).
How long does this process run? Could it be that you run into the node count limit or the timeout for chaining, and the first time it only works by chance? MNI in a chain is always problematic.
yeah maximum selections were limited to 20 only and so the node runs respectively 20 times.
OK. One more idea: Does that expression "LAW_getBulkTasksToReassign" use a "load()" or locale variables that are NOT defined as refreshAlways? This might prevent Appian from refreshing the data.
I am using localvariables only and I have tried the refresh variable & parameter refreshalways true but the local variable is not getting refreshed with new data
Then you will have to start a structured problem solving approach. Separate the problems into smaller ones.