Hello, I am trying to implement shifts in my process flow. My model is process flow based to easily change the number of operators and workstations using a single reference table once I get around to using the experimenter.
Currently, I am able to initially separate operators based on shift and release operators from off-shift to working. However, there are two main pieces of logic that I can't figure out how to implement to integrate shifts into my process flow.
Getting the operators to check if they are still on shift at the end of each job and pulling operators from searching for more work when the shift ends.
I have looked at the following resources, and I am still struggling.
Planning on using for in-shift breaks: https://answers.flexsim.com/questions/84923/stop-token-in-delay-task-sequence-activity-when-op.html
Tried to mimic this, but I don't understand what is going on well enough. Also, operators would more likely finish out their task then give it someone else: https://answers.flexsim.com/questions/57986/process-flow-shift-change-and-incomplete-work.html
Can't get second shift to work on tasks pulled by first shift: https://answers.flexsim.com/questions/24325/can-resources-in-process-flow-be-assigned-shift-sc.html
Operators are created with process flow, so I can't assign them to a time table: https://answers.flexsim.com/questions/72284/using-time-tables-with-process-flow.html
Was considering to use this to not worry about some logic, but having operators run some overtime is probably more accurate: https://answers.flexsim.com/questions/57995/dont-start-a-job-that-wont-be-finished-before-shif.html
I also tried tracking what shift it is using a variable, but I can't get a conditional decide to work:
token.Shift == getstat(getactivity(processFlow, "Variable: Shift"), "Output", STAT_CURRENT, current)
However, even if I got this to work, I still need a way to move operator tokens away from trying to pull jobs off the list after they go off shift.
How can I get my operator tokens to work on a shift schedule?
Here is my model for reference: