question

Jiayi L avatar image
0 Likes"
Jiayi L asked Jiayi L commented

Decide by token label value

I set a label with "On Entry" trigger on the processor like this

I want to reuse the value of this label as the condition of the decide in my process flow

But it doesn't work for me. Which expression I should use in this condition?

Thanks in advance!

Conveyor2.fsm

FlexSim 19.0.0
labelsflexsim 19.0.0conditional decide
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jiayi L commented
token.item.suspiciousLuggage

you assign a label at an item or another object in a 3D model trigger.

If you want to get access on this label value, you must have a pointer to this object in process flow For example token.item. Then you read label value of this pointer.

· 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.

Jiayi L avatar image Jiayi L commented ·

I've tried this expression but it shows an error

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jiayi L commented ·

@Jiayi L, have you assigned item to an token label at your event driven source? The error tells me still the label item.SuspiciousLuggage doesn’t exists. This means item at token is not assigned.

0 Likes 0 ·
Jiayi L avatar image Jiayi L Joerg Vogel commented ·

Because I used the change of an variable (PE7) as the event of source, I'm not sure if I should assign item like this :

0 Likes 0 ·
1.png (134.7 KiB)
Show more comments