Modify process instance variable via a process model

Certified Associate Developer

Hi All,

I have a situation where I work on cases based on process model approach i.e. Assignment in PM itself. Each case goes through 3 levels of approval from associate to manager, to senior manager. I have a master process which triggers when a associate "Smith" starts working on a case, this particular associate will be the assignee for the associate task. Once Smith submits this case it goes to all the managers queue and once they accept the task and submit the case it goes to senior managers queue and once they accept the task and submit the case it comes back to Smith who will close the case finally.

Now let's say we want to change the associate Smith to Alex (Not through reassignment but through another process model). We have to check active process instance for this case and get the process variable that holds the associate name and change that process variable value to Alex.

Is it even possible to modify the process variable of a active process instance through a process model smart services.

Thanks

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    There's a plug-in that allows an external smart service to set the value of a variable in a particular instance.  It's a little tricky to understand and implement, so I suggest it be used only when nothing else will suffice.

    Be aware though that if the task instance is already active and assigned, then simply changing the PV value of the assignee variable won't actually shift the task assignment.  For that you'd need to call a different smart service that actually literally reassigns the task.

Reply
  • 0
    Certified Lead Developer

    There's a plug-in that allows an external smart service to set the value of a variable in a particular instance.  It's a little tricky to understand and implement, so I suggest it be used only when nothing else will suffice.

    Be aware though that if the task instance is already active and assigned, then simply changing the PV value of the assignee variable won't actually shift the task assignment.  For that you'd need to call a different smart service that actually literally reassigns the task.

Children
No Data