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:

token.Person.Gender == "Male"

linebygender.fsm

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

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.

Maryam H2 avatar image Maryam H2 commented ·

@Matthew Gillespie

Is the script below to divide male from female operators still true?

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

Can I put it in a decision point to divide male flow from female?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Maryam H2 commented ·
@Maryam H2 Yes and yes
0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Matthew Gillespie ♦♦ commented ·

@Matthew Gillespie

so can you please take a look at the model attached? I can't tell what I'm doing wrong.

storage_gowning_model_1.fsm

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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