question

Stan Davis avatar image
1 Like"
Stan Davis asked Phil BoBo edited

Node On Arrival Trigger Fires On Exit

I'm trying to develop some labor tracking logic using node entry/exits, but I am having trouble understanding why the On Arrival trigger is firing when an operator exits an endpoint node.

What is being observed seems to indicate the operator may not be physically be sitting at the node after entering. When a resource is parked at a node, is it not actually at the node? I did set the Operator to not travel offsets and block space on networks, but On Arrival still fired on exit.

I attached a small test model demonstrating what is being observed.

Node On Arrival Logic Test.fsm


I did find a previously answered question on this topic but the scenario is a little different...

https://answers.flexsim.com/questions/43656/network-node-onarrive-trigger-not-firing.html

Also, I am not completely understanding 'toedge' and 'fromedge' . The manual does not clearly define what these represent.

Thanks

FlexSim 21.2.2
triggersnodes
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

The documentation for Network Node On Arrival and On Continue is here: Network Node (flexsim.com)

This is all working as intended. When the traveler arrives at NN3, it fires the OnArrival trigger with fromedge 1 and toedge 0. The toedge is 0 because that it the operator's final destination; he isn't continuing onto another network node path at the time. It then fires the OnContinue trigger with fromedge 1 and toedge 0, indicating that the operator has finished the travel operation to that node.

When the traveler begins traveling again, it fires the On Arrival of NN3 indicating that the operator is beginning to travel again, arriving at that node as the first node of the new travel task. If he is blocking space on the network, then the fromedge will be whatever edge he came from previously (1 in this case). If he left the network to do offset travel, then the fromedge will be 0. Then the OnContinue trigger fires indicating that the operator is continuing to travel through that node with the toedge being the path he is about to start traveling on.

It fires OnArrival and OnContinue in that order for every involved network node along an operator's travel path along the network. You have callbacks at every important event during the operator's travel task.

I don't understand what you mean by "fired on exit." Exit of what? What is exiting? When he finishes a travel task, he is arriving at that node, so it is firing OnArrival. When he begins another travel task, he is arriving at that node, so it fires OnArrival. You have all the callbacks you need with all the parameters you need in order to make a decision at each event involved with the operator traveling to, through, or from a network node.

See the attached model with print statements in OnArrival and OnContinue showing what is happening and when.

node-on-arrival-logic-test_1.fsm


· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.