the token advances to the next step before ending the sub flow

the token advances to the next step before ending the sub flow

mohamed_roushdyBVFZP
Explorer Explorer
8 Views
7 Replies
Message 1 of 8

the token advances to the next step before ending the sub flow

mohamed_roushdyBVFZP
Explorer
Explorer

[ FlexSim 18.1.1 ]

I have a problem where the token advances to the following steps in the process flow before ending the sub-flow; can any one help me to know the reason?

this occurs only for a certain sub-flow; the other sub-flow in the same process flow sub-flow-issue.jpgare working well

0 Likes
Accepted solutions (1)
9 Views
7 Replies
Replies (7)
Message 2 of 8

Matthew_Gillespie
Autodesk
Autodesk

You'll need to attach your model. There's not enough information in that screenshot.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 8

regan_blackett
Autodesk
Autodesk
Accepted solution

It's tough to diagnose on just the image but here's something to look at, related to the use of Split/Join inside a Subflow.

I'm guessing that your token that does the "unload Case" Run Subflow activity sends one child token into the Subflow. Now the Split activities by default create tokens that are independent of each other. So the original child token is still a child of the main token, but the new token that comes out of the Split activity won't be unless you tell the Split to make Sibling Tokens.

This can be important because the order of the connectors that lead back into a Join matters as to what token comes out of a Join. If the newly created independent token arrives to the Join on its first inbound connector, then that's the token that the Join releases. The original Child token would actually be destroyed by the Join which the Subflow would treat the same as hitting a finish activity. Since the Parent would only know about its one Child and not the token the Child created via the Split, that's enough to release the Parent token from the Run Subflow activity, even though the Split-created token is still in the Subflow.

If this is the issue, the best thing to do is to make sure that the original Child token always arrives to any Join on inbound Connector 1.

Message 4 of 8

mohamed_roushdyBVFZP
Explorer
Explorer

3-autosave.fsm

here is my model; as you will see i used 2 sub flows for load an unload picks; the load subflow is working well but the unload sub flow not.

0 Likes
Message 5 of 8

emily_hardySTLSK
Autodesk
Autodesk

@Mohamed R3, did this help answer your question?

0 Likes
Message 6 of 8

mohamed_roushdyBVFZP
Explorer
Explorer

@Emily Hardy,unfortunately the problem still exist, i'll be grateful if you could help.

0 Likes
Message 7 of 8

regan_blackett
Autodesk
Autodesk

@Mohamed R3

I just noticed that there was a model posted here, and I think I was right; in the subflow attached to 'unload Case' the original Child token get split to the left-hand travel activity which is Connector #1, but the Join activity has that activity inbound on Connector #2. This is deleting your original Child token and allowing the parent token to be released from the 'unload Case' activity. Make sure the Child token leaves a split on on Connector #1 and arrives to a Join on inbound Connector #1 and it will work fine.


Message 8 of 8

mohamed_roushdyBVFZP
Explorer
Explorer

@Regan Blackett thanks a lot for your support; and sorry for my late reply.

it's now working fine

0 Likes