Hello,
Since operator can only follow network nodes on executing travel task. If an operator receives a preempting tasksequence while executing load, the operator will return to load task instead of travel task, so he won't follow network nodes.
Hello,
Since operator can only follow network nodes on executing travel task. If an operator receives a preempting tasksequence while executing load, the operator will return to load task instead of travel task, so he won't follow network nodes.
You can use milestone tasks to have the task executer return to after being preempted, instead of the last task it was doing.
@Jason Lightfoot shows how this can be done when the task sequence is created in a process flow here: https://answers.flexsim.com/questions/121986/problems-with-preemption-1.html
As the task sequence is automatically generated in this case, the milestone task(s) have to inserted into the sequence via code. The 'On Receive Task Sequence' trigger is well suited for this.
Dispatcher current = ownerobject(c); TaskSequence taskSequence = param(1); // Step through task sequence to find load/unload tasks for(int index = 1; index <= taskSequence.tasks.length; index++) { TaskSequence.Task curTask = taskSequence.tasks[index]; // If it is a load or unload task, add a milestone task in front of it // (we assume that the task is always preceded by a travel task) if(curTask.type == TASKTYPE_LOAD || curTask.type == TASKTYPE_UNLOAD) { // 'var1' (the last parameter) defines the range of the milestone // If preempted away within the next N tasks, return to the milestone afterwards TaskSequence.Task milestone = taskSequence.addTask(TASKTYPE_MILESTONE, 0, 0, 2); milestone.rank = index - 1; index++; } }
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved