Problem in using label

Problem in using label

ka_ho_l
Not applicable
8 Views
4 Replies
Message 1 of 5

Problem in using label

ka_ho_l
Not applicable

[ FlexSim 20.1.0 ]

Hi all, I tried to use label, however it cannot perform what I expected.

Source using round robin method to send people out to queue 1 to queue 4.

1 st person will follow this path:

queue 1 -> processor 1 -> queue 2 -> processor 2 > queue 3 -> processor 3 then leave

2nd person will follow this path:

queue 2 -> processor 2, then leave

3rd person will follow this path:

queue 3-> processor 3, then leave

4th person will follow this path:

queue 4 -> processor 4 -> queue 2 -> processor 2 -> queue 1 -> processor 1 , then leave

I am not sure how to using label to clearly distinguish the source, the perform the path mention above. Many thanks for your help.

Image.png

0 Likes
Accepted solutions (1)
9 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

I hope my example demonstrates you the use of label attributes to set a flow.

Involved are the On Creation trigger and the Send To Port function.27391-send-to-by-label-type-vs-round-robin.jpg

Send_to_by_label_Type_vs_round_robin.fsm

0 Likes
Message 3 of 5

joerg_vogel_HsH
Mentor
Mentor

Perhaps you look into the Send To Port function option Port by Case.

0 Likes
Message 4 of 5

ka_ho_l
Not applicable

@Jörg Vogel

Thank you for your reply, if there is one source only how to handle it, in this case processor have 3 functions:

Send 1 st person to queue 3, 2 nd person to sink, and 4th person to queue 1, to handle this case use On Creation trigger and the Send To Port function, no need to use label ? thank you again



test 123.fsm

0 Likes
Message 5 of 5

joerg_vogel_HsH
Mentor
Mentor

You set a Label in On Exit trigger of the source. The value is port. "port" is variable defied in the source code of On Exit and it is parsed into this function by Send To Port function. Now that your Operators as Flowitems have an label you can send them with the option Port By Case to their destination.

0 Likes