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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Passing in the group objects as an array works.

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