question

Meng,Li avatar image
0 Likes"
Meng,Li asked Meng,Li commented

How to access the index of the up activity that a token stream from?

For example here, the activity "Decide" has three pre-activities, when a token flow into "Decide", i want to know which pre-activity it stream from, namely, the index of the input port.

So how can i do this?

FlexSim 19.0.0
flexsim 19.0.0activity
001.png (14.7 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @meng L, was CSN'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 ·

1 Answer

·
CSN avatar image
3 Likes"
CSN answered Meng,Li commented

You can try to distinguish them with labels.

In order to solve your problem better and faster, you can contact our local China partner (BJCSN), We will provide you with professional FlexSim technical Q&A. contact information: [email protected]; QQ:1093796825

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

Meng,Li avatar image Meng,Li commented ·

Lets leave labels out of this, is there a way more directly to get the index, like inputObject[]?

-1 Like -1 ·
Wang Yang avatar image Wang Yang Meng,Li commented ·

Our engineers discussed it and thought it would be better to use the label method; But we don't know why you don't use the label method?

At the same time, I left a message on your QQ, but I didn't get a reply. We don't recommend that you use version 19.0.0.

0 Likes 0 ·
Meng,Li avatar image Meng,Li Wang Yang commented ·

Sorry for your message on QQ, cause i uninstalled QQ a long time ago.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Meng,Li commented ·

I’d suggest you replace your process flow logic by a sub 3D model, then you are able to receive this data in OnEntry triggers. A token is simplified item, which reduces the needed storage space foot print. That involves a reduced data structure of previous events.

0 Likes 0 ·
Meng,Li avatar image Meng,Li Joerg Vogel commented ·

OK, Get it!

0 Likes 0 ·

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.