question

Akhil raja rao K avatar image
0 Likes"
Akhil raja rao K asked Maryam H2 commented

How to divide male and female using decide function in process flow?

I'm working on a model in which both Male and females will come from a single source, their walkthrough is also the same for 3 walks but in the fourth walk the people should divide according to their gender and move on to their respective connector. I've used decide function before the final walk where people need to move in their respective ways i.e male should move through connector 1 and female should move through connector 2 I've attached my sample model to make my question much clear, please find the attachment.

FlexSim 20.0.0
processflowpeople moduledecidedecide functionmale
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

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Maryam H2 commented

The easiest way is to add a label to the Man and Woman flowitems in the flowitem bin. Then in the decide you can just check the label you added. For example if you added a Gender label then you would check:

  1. token.Person.Gender == "Male"

linebygender.fsm

Alternatively you could check the name of the 3D shape that the person is using:

  1. shape(token.Person).value.includes("Male")

linebygender.fsm (39.6 KiB)
· 5
5 |100000

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