Operator Task Sequence

Operator Task Sequence

julie_leflem
Observer Observer
226 Views
5 Replies
Message 1 of 6

Operator Task Sequence

julie_leflem
Observer
Observer

Hello,
I am trying to build a model with two workstations and one operator. Each workstation has multiple work activities, including operator-only activities, machine-plus-operator activities, and machine-only activities. I would like to force the operator to follow a cyclic sequence of tasks that is independent of the item flow. All activities are summarized in a global table, and the column "Order" defines the sequence in which operator activities should be performed. Machine-only activities are set to 0. I thought the following logic would work, but it does not:
1. I created an Operator Process Flow. I created a NextStep variable, which is incremented by 1.
2. Each time an item is ready to be processed by Machine 1, a token is created and sent to the Machine 1 Workstation Process Flow.
3. When an operator is required, the token is pushed to a list. The operator token should pull it only if its current step matches the step required for that activity.
4. The token is then pushed to another list, which the item token pulls from so the process can continue.

So I used two different lists to acquire my operator. However, this does not work as expected.
What would be a better way to constrain the operator to follow a specific task sequence?

Accepted solutions (1)
227 Views
5 Replies
Replies (5)
Message 2 of 6

Ihor_Radikhovskyi
Collaborator
Collaborator

Hi @julie_leflem 

Your overall idea of using an Operator Process Flow with a NextStep label is actually a solid approach for enforcing a strict cyclic sequence. However, using two separate lists for synchronization adds unnecessary complexity and can easily cause tokens to get stuck.

A cleaner way to handle this is to use one List combined with Release Token (or Wait for Event)

  1. Item Process Flow: When an operator is needed, assign the required Order value as a label on the item token, Push to List (pushing the token itself), and immediately follow it with a Wait for Event (or simply a Delay / Custom Code wait state, or a Wait for Event listening for a label change / release).

  2. Operator Process Flow: Have a single looping token for the operator. It uses Pull from List with a query like WHERE Order == puller.NextStep.

  3. Execute & Release: Once the operator token pulls the item token, the operator performs the task (Travel, Delay, etc.), then uses Release Token (pointing to the pulled item token) so the workstation flow can continue.

  4. Loop Reset: Increment NextStep by 1, and if it exceeds the maximum Order value in your Global Table, reset it back to 1 so the cycle repeats cleanly.

This eliminates the second list completely and keeps the handoff between the operator and the workstations much easier to debug.

0 Likes
Message 3 of 6

julie_leflem
Observer
Observer
Thank you @Ihor_Radikhovskyi for your quick response.

I eliminated the second list completely, and the Process Flow now works. Since a token remains at the "Push to List" activity until its entry is pulled, I don't think I need a "Wait for Event" afterward.

While the tokens are released in the correct order, some items are already available at the first queue, which causes tokens to be pulled before the cycle ends. If you run the model, you can see that Activities 1, 2, and 3 are processed, but Activity 4 becomes available at the same time as Activities 1 and 2. Because the list uses a FIFO rule, it picks whichever is available first, breaking the cyclic sequence.

What can I do to enforce the cyclic sequence and prevent this?

Message 4 of 6

Ihor_Radikhovskyi
Collaborator
Collaborator

Hi @julie_leflem

Glad to hear the single list got it working! Two quick things explain what you are seeing:

1. Why FIFO breaks the cycle:

If Pull from List uses the query WHERE Order == puller.NextStep, FIFO only applies to matching entries. It will never pull step 1 or 2 when NextStep is 4. If it pulls whatever is available first, double-check that:

Маркер The List has an Expression Field named Order (set to value.Order).

Маркер The Pull from List Query is set to WHERE Order == puller.NextStep.

Маркер The operator token is the Puller and has the NextStep label.

1. About Wait for Event:

A token leaves Push to List as soon as the operator starts the task, not when they finish it. If the workstation must wait until the operator completes the activity, you still need a Wait for Event or Release Token after Push to List.

Once the Order field and query are set up properly, the operator will strictly wait for step 4 before looping back to 1.

0 Likes
Message 5 of 6

julie_leflem
Observer
Observer

Hi @Ihor_Radikhovskyi 
Thany you very much, I checked all your points, and I think the problem came from the missing Wait for Event: the token was released and could continue to the NextStep whether the Operator finished his task or not.

I added a Wait for Event in the Operator Process Flow right after the Pull from List (Object: Operator1, Event: OnFinishTask) to prevent the operator token from continuing before the previous task sequence ends.

It seems to work, so I hope this is the best way to do it.

Message 6 of 6

Ihor_Radikhovskyi
Collaborator
Collaborator
Accepted solution

Yes, @julie_leflem ,adding the Wait for Event in the Operator Process Flow right after the Pull from List is a clean and solid way to handle this. It guarantees that the operator finishes the current task before NextStep increments and the next pull happens, keeping your cyclic sequence completely synchronized and easy to maintain.

I'm glad the model is working as expected now! If my replies helped you solve the issue, please feel free to click "Accept as Solution" so other community members with a similar question can easily find the answer.

Best of luck with the rest of your model!

0 Likes