Skip to main content
December 18, 2023
Question

Unable to update the local varibale on second time onwards.

  • December 18, 2023
  • 7 replies
  • 0 views

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,
                                      
                                    )
                                  )
                                }
                              )

    7 replies

    stefanhelzle0001
    December 18, 2023

    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.

    hemap0003Author
    December 18, 2023

    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).

    stefanhelzle0001
    December 18, 2023

    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.