Hi, we are trying to dynamically reassign a task based on updated pv's. We h

Hi, we are trying to dynamically reassign a task based on updated pv's. We have a process that runs daily to query the DB and update or cancel the main process.
Once a main process is started how can we reassign the task. for example: process A starts on day 1 and the task is assigned to group X but it is not completed by the EOB. Day 2+ the process variables are updated and we need to re-evaluate the assignment based on the pv's. I have attached a file with more information. Many thanks!...

main_pm.doc

OriginalPostID-103706

OriginalPostID-103706

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    In addition to updating the process variable, you need to have an exception flow on the task that detects a flag you set (or some expression that tells it the assignment has changed), then flows through a script task to reset the flag and then reactivate the task. The assignment is only evaluated when the node is started, it won't dynamically update the assignment without restarting the node in this manner.
Reply
  • 0
    Certified Senior Developer
    In addition to updating the process variable, you need to have an exception flow on the task that detects a flag you set (or some expression that tells it the assignment has changed), then flows through a script task to reset the flag and then reactivate the task. The assignment is only evaluated when the node is started, it won't dynamically update the assignment without restarting the node in this manner.
Children
No Data