question

Mike S5 avatar image
0 Likes"
Mike S5 asked Benjamin W2 commented

Decide by token label text

I'm trying to figure out how to use a Decide to choose the connector based on the text string on a token label. The help screens say that it's possible, but it doesn't tell you how to do it. I have 6 connectors out, so I can't use a conditional decide. Help!

FlexSim 20.1.0
flexsim 20.1.0decide
· 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.

Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Mike S5, was Regan Blackett's answer helpful? If so, please click the red "Accept" button on their answer!

0 Likes 0 ·

1 Answer

·
Regan Blackett avatar image
1 Like"
Regan Blackett answered Regan Blackett commented

There are a couple of different ways you can do this, but the easiest most direct way is to double click your connectors and give them names that exactly match the different possible text values of your label. Then in the Send token to field choose the Token Label > Your label name. This will match the tokens with connectors whose labels match the connector's names.

Here's a simple example:

decide text.fsm


decide-text.fsm (27.4 KiB)
· 4
5 |100000

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

Regan Blackett avatar image Regan Blackett ♦ commented ·

You have "activity by case" in your Send Token To field, which won't work. And your token.Processor label data isn't text, it's a pointer to an object so you would need to set your Decide like this:

1 Like 1 ·
labeldecide.png (10.0 KiB)
Mike S5 avatar image Mike S5 commented ·

In my model that method results in this:

Error: Invalid destination at activity "Decide" in process flow "ProcessFlow"

0 Likes 0 ·
Regan Blackett avatar image Regan Blackett ♦ Mike S5 commented ·

Can you upload your model?

0 Likes 0 ·
Mike S5 avatar image Mike S5 commented ·
0 Likes 0 ·
playground.fsm (136.4 KiB)

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.