question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked José Antonio MD answered

Assign labels to decide a path

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

FlexSim 21.2.2
routingassign labelsprocces flow
1636098325998.png (5.1 KiB)
camino.fsm (37.8 KiB)
5 |100000

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

1 Answer

José Antonio MD avatar image
0 Likes"
José Antonio MD answered

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.

5 |100000

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