Error happens at 35.05. Operator id:1 is working on task id:8. When the task is completed, the child of token id:2 gets written over to id:8. This only shows up when checking with the script; it does not show when looking at the token. Work in Process code at "Release Token: Other Operators Waiting".
Here is what I am trying to do: This is a simplified version of my primary model, where operators have their own logic, pulling from a global task list. I am trying to add coordinated tasks. If a task required multiple operators, the first operator to pull the task will ask for help from others by adding additional tasks.
This seemed to work until I put 3 tasks in a row, requiring 2 operators each. They are at a standstill, all waiting for each other. ("Operators Work - No Cancel" logic and OpQty = 2 for row 1-3 on table "Worklist")
I tried to add some cancel task logic; so far it works with two operators, but issues arise when I try to add a third or more. If the primary operator asks for two assistants and gives up before getting assistant #2, I would like to send assistant #1 to return looking for work. The error occurs when trying to reference child tokens (tasks) of the primary operator. I need to reference these tasks to ultimately reference the task pullers (assistants).
Am I hitting a bug or what is going on?
OR is there a much better way to do this?