Assign labels to decide a path

Assign labels to decide a path

oscar_c13
Not applicable
61 Views
1 Reply
Message 1 of 2

Assign labels to decide a path

oscar_c13
Not applicable

[ FlexSim 21.2.2 ]

Hello,
In my model have to be multiple routing options for the token based on certain conditions. For this I have used "decide" blocks on previous occasions, but i would like to do it with an assign labels that contemplates all the possibilities.
I have made a simple example in wich the operator has to go to looking at the queues and when he finds Caja2 it has to go to BasicFR2.
Give me the next error, so, the problem is with the assing labels block
1636098325998.png

I attach the model:

camino.fsm

0 Likes
Accepted solutions (1)
62 Views
1 Reply
Reply (1)
Message 2 of 2

jose_antonio_mad
Not applicable
Accepted solution

Hello @Oscar C13 ,


Your problem is your for. You start in 0, and the first subnode is in position 1.

for (i=1; i<=Model.find("Queue1").subnodes.length; i++)

I advise you to use lists instead of so many loops.

I hope I have been helpful.

0 Likes