Decide by token label text

Decide by token label text

mike_s5
Not applicable
20 Views
6 Replies
Message 1 of 7

Decide by token label text

mike_s5
Not applicable

[ FlexSim 20.1.0 ]

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!

0 Likes
Accepted solutions (1)
21 Views
6 Replies
Replies (6)
Message 2 of 7

regan_blackett
Autodesk
Autodesk
Accepted solution

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

Message 3 of 7

mike_s5
Not applicable

In my model that method results in this:

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

0 Likes
Message 4 of 7

regan_blackett
Autodesk
Autodesk

Can you upload your model?

0 Likes
Message 5 of 7

mike_s5
Not applicable
0 Likes
Message 6 of 7

regan_blackett
Autodesk
Autodesk

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:

28096-labeldecide.png

Message 7 of 7

benjamin_w2
Not applicable

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

0 Likes