question

michael.smith avatar image
0 Likes"
michael.smith asked Brandon Peterson edited

Process Flow - Moving Tokens and Travel Tasks

I'm moving tokens from flows and sub flows based on other actions in the model (https://www.flexsim.com/community/forum/showthread.php?t=3333). In most situations this is working fine but I have some travel tasks where the TE travels and the process waits for the travel to complete (to represent travel properly) when I move a token that is in a travel step when the travel complete action happens there is nothing for it to signal and causes an exception

exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MODEL:/Tools/ProcessFlow/Reahbilitation/Travel~3>variables/callbackNode c: /Tools/ProcessFlow/Reahbilitation/Travel~3>variables/callbackNode thisClass: /Tools/ProcessFlow/Reahbilitation/Travel~3>variables/callbackNode

Is there a good way to tidy up this call or to catch the exception - ie hold the move until the current task is complete?

FlexSim 16.0.1
process flowtask sequence
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

Matt Long avatar image
3 Likes"
Matt Long answered anthony.johnson commented

This is a bug, one that has been fixed in FlexSim 2016 Update 1. Calling releasetoken on a token in a Task Sequence activity that has the Wait Until Complete would, as you said, try to call the complete action but would have nothing for it to signal.

Depending on how your model is set up, one way you could work around this is by unchecking the Wait Until Complete and then having the token move into a Wait for Event that will wait until the TE fires its OnResourceAvailable trigger (when the travel task is complete). Then if you need to release the token early, you can do so while the token is in the Wait for Event activity.

· 2
5 |100000

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

michael.smith avatar image michael.smith commented ·

Is there an ETA for 16.1 @Matt Long

0 Likes 0 ·
anthony.johnson avatar image anthony.johnson ♦♦ michael.smith commented ·

No promises but we hope to have the 16.1 release out within a month or so. So late June, early July-ish.

1 Like 1 ·