question

ksugai avatar image
0 Likes"
ksugai asked Jeanette F commented

Wait for event of a group defined by a token label

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

FlexSim 24.0.3
groupwaitforevent
image2.jpg (13.1 KiB)
image1.jpg (14.1 KiB)
· 1
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 @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 0 ·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Passing in the group objects as an array works.

token.group.as(Group).toFlatArray()
5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

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

5 |100000

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

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.