question

Kaitlin M avatar image
0 Likes"
Kaitlin M asked Ben Wilson commented

Sending a connector from a decision block to another process flow

Hi there, how can I send a certain portion of tokens to a different process flow? I hoped to use a decision block and route a portion of tokens to a different flow. I see that I cannot drag and drop the connector to a different flow. Can I somehow destroy and create tokens in the other flow at the same rate?

FlexSim 21.1.1
healthcareflexsim 21.1.1decision blockmode of arrival
· 1
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Kaitlin M, was Eric M's or James Rodgers's answer helpful? If so, please click the red "Accept" button at the bottom of one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
James Rodgers1 avatar image
0 Likes"
James Rodgers1 answered

In this case, it's best to use Jason's suggestion of pushing the token to a list that is being monitored in the instanced destination process flow.


5 |100000

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

Eric M avatar image
1 Like"
Eric M answered Jason Lightfoot commented
Hi @Kaitlin M, you can add a 'create tokens' activity that your decision block routes to and use that to create a token in another process flow. You can copy over all of the labels to the new token too. I'm not sure of a way to make sure they are destroyed at the same rate, but if you make the new token a child to the first, the original (parent) token won't be destroyed until the child token is. Not sure if that would be applicable in your case or not.
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

For traceability I'd prefer to push to a global list and pull from it in another process flow. Looking at the receiver activity alone you'll not be able to tell from where the token came.

1 Like 1 ·
Kaitlin M avatar image Kaitlin M commented ·

Hey @Eric M, thanks for the reply. I just tried to do this and routed the token to an activity in a different flow. I received this error:

Error: Invalid destination at create tokens activity "Direct to Chair" in process flow "Ambulance Flow". Destination cannot be an activity in a Fixed Resource or Task Executer ProcessFlow.

Am I missing something? I routed it to an Acquire Resource activity. Are there only certain types of activities I can route it to?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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