question

Pinakin K avatar image
0 Likes"
Pinakin K asked Jeff Nordgren commented

How to identify which event the Event triggered source listened to?

I have a process flow, where I am using one event triggered source activity to listen to 2 events. My objective is to identify the event that triggered it, so that I can reference it in my further process.

As you can see in the picture, two events are listened to, and both are global table references.

I want to identify, by using labels or any other similar identifier, which event was listened to, so that I can reference it in my further process. I don't want to use 2 event triggered sources.

Thank you!

FlexSim 18.0.3
process flowevent-triggered source
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

Joshua S avatar image
1 Like"
Joshua S answered Jeff Nordgren commented

To reference the Event triggered, you can type token.Event, or token.("insert desired label name") in the Assign Event Object To box. This will assign the object that was fired to a label on the token.


· 9
5 |100000

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

Pinakin K avatar image Pinakin K commented ·

So, if i put token.Event, then how do I reference this in my further process.

I plan on referencing the event in following manner

if(token.firstevent?)
{
return 1;
}
else
{
return 2;
}

So how do I name the token coming from each event?

0 Likes 0 ·
Joshua S avatar image Joshua S commented ·

Try comparing the names, for instance one of your events was named TableEvent:

if(token.Event.name=="TableEvent")
{
return 1;
}
else
{
return 2;
}
0 Likes 0 ·
Pinakin K avatar image Pinakin K Joshua S commented ·

For each event would the label values follow the sequence of the events added in the source? Because if this is the case, I would design my model in that manner.

0 Likes 0 ·
Joshua S avatar image Joshua S Pinakin K commented ·

Each token created will have that label assigned to it from its source and the event that triggered the creation of that token.

0 Likes 0 ·
Show more comments