Wait for event of a group defined by a token label

Wait for event of a group defined by a token label

KSugai
Not applicable
144 Views
3 Replies
Message 1 of 4

Wait for event of a group defined by a token label

KSugai
Not applicable

[ FlexSim 24.0.3 ]

I want to wait for event of a group defined by a token label.

I tried within the attached model, but got the following error.

Please tell me how to achieve this.

Thanks in advance.

image1.jpg image2.jpg

waitForEventOfGroup.fsm

0 Likes
Accepted solutions (1)
145 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor

Try it with a treenode that you cast into as(Group) directly.

Edit: You can evaluate a string label and you create a reference by Group constructor

0 Likes
Message 3 of 4

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

Passing in the group objects as an array works.

token.group.as(Group).toFlatArray()
0 Likes
Message 4 of 4

Jeanette_Fullmer
Community Manager
Community Manager

Hi @ksugai, was one of Felix Möhlmann's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 comment back to reopen your question.

0 Likes