I have a travel network node system in which the taskexecuter goes through the wrong path, I want to choose the correct path that I want. How can I do this?
I have a travel network node system in which the taskexecuter goes through the wrong path, I want to choose the correct path that I want. How can I do this?
Hi, @Mario García López!
I am not sure if this is what you wanted but I changed the "on arrival" code of your node to this:
if (traveler == Model.find("TaskExecuter1") && fromedge == 1) {
return 2;
} else if (traveler == Model.find("TaskExecuter2") && fromedge == 1) {
treenode newDestination = Model.find("NN11");
redirectnetworktraveler(traveler,newDestination);
return 3;
}
I think it works as you wanted it to work but if you have any concern please let us know.
path.fsm
It actually worked! Thank you so much. One more thing if possible... The second taskexecuter starts its work when there are more than one box in the queu. If there are only one, the first taskexecuter returns to get the box, even if the distance is much longer than the other taskexecuter.
How can I make sure that the taskexecuter in charge of the task is the one closest to the next task?
All the best.
In the dispatcher options you can explore different options for instance ths one:
"Shortest distance if available"
You can edit path option to be not connected. A network node has a connections (edge) to another. You can disconnect it by code or by attribute variable.
alternatively you can add travel tasks to networknodes by which a taskexecuter must go to reach a station. While reaching a destination of a Tasksequence next task will be evaluated to plan next destination by shortest distance. So you don’t need all network nodes being a destination but a few or only one to divert a taskexecuter.
12 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