question

Lea D2 avatar image
0 Likes"
Lea D2 asked Lea D2 commented

How to read a label defined in a source ?

Hello,

In my simulation the source in the arrival flow contains the label "duration" and I would like the "Delay" activity in the person flow to take the value of the "duration" label for each person.

However, the "duration" label doesn't appear in the list of labels when I set up the Delay activity, I think it is because it is in a different process flow (even though the persons arriving have the "duration" information because I can see it when looking at their quick properties)

Does anyone have an idea on how to overcome this issue ?

Consultation_v4.fsm


FlexSim 19.2.4
sourceflexsim 19.2.4label
consultation-v4.fsm (41.5 KiB)
· 4
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @lea.d2, was Gustavo Teodoro's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Lea D2 avatar image Lea D2 Jeanette F ♦♦ commented ·

I still can't access to the label in the delay activity, this activity doesn't recognize the "person.Duration" instruction. Maybe it comes from the fact that the person (in the 3D model) has the label information but the token corresponding (in the process flow) doesn't seem to have the label information.

0 Likes 0 ·
Gustavo Teodoro avatar image Gustavo Teodoro Lea D2 commented ·

Hello, if you use "person.Duration", the time will not be shown in the token, but it will recognize by it. If you click in the person in 3D, the label "Duration" is 300. Also, if you click in the token, the entry time is 10.86 and the exit time is 310.86, exactly 300 seconds. I have attached a screenshot of this explanation and the model.

1629374076392.png

consultation-v4.fsm

0 Likes 0 ·
1629374076392.png (149.5 KiB)
consultation-v4.fsm (41.5 KiB)
Show more comments

1 Answer

Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered Jeanette F commented

Hi,

You have to use "person.label_name". In your example, you should use: person.Duration

· 2
5 |100000

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

Lea D2 avatar image Lea D2 commented ·
Yes but I don't know why it doesn't recognize/find the duration label when I want to make a reference to it in the delay activity.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Lea D2 commented ·

Hello @Lea D2,

This is what @Gustavo Teodoro was intending for you to do.

1629122375648.png

0 Likes 0 ·
1629122375648.png (8.2 KiB)