Hi
I would like to know if it's possible to remove a task sequence from a global task list without being executed by a task executer.
What I've done is created a task sequence for emptying a reject by an operator before it's completely full. I've used a queue which can hold maximum 10 flowitems. When the amount increases to 7 items I'll create a token with a create.on event source. With this token I create a task sequence to pick up the flowitems and push the task sequence to a global task list.
If the queue reaches 10 items before the operator empties the queue I stop the machine upstream because the "reject bin" is full. In this case I want to create a new task with a higher priority to empty this bin. If the operator has preformed this task the previous task is obsolete. How can I remove this specific task from the task list.
All items that enter the queue are pushed to a list. For this I use a create token on event en create the token when a flowitems enters the queue. Then the value of the token is pushed to list. This reference is later used for pulling the items from the list in then task sequence.
You can imagine that when the higher priority task has been preformed the items are already pulled from the list and sinked. So when the lower priority task is preformed the operator can't load the already sinked flowitems and the simulation stops.
Does anyone have a solution. I'll try and upload a example model tomorrow for reference.