question

Maciej Kotlicki avatar image
0 Likes"
Maciej Kotlicki asked Sam Stubbs commented

Starting a Process Flow in Tasksequence

I'm trying to implement a process flow into an existing simulation that is mainly built using task sequence and triggers OnMessage.

I'm having troubles starting my process flow (that mainly dictates how flow items are to be located insinde a Queue) through that task sequence.

Choose One
process flowtask sequenceprocess flow tasksequencehelp request
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

Matt Long avatar image
1 Like"
Matt Long answered Sam Stubbs commented

Process Flow has two activities that can be used to listen to events on objects. This is the Event-Triggered Source and the Wait For Event. The Event-Triggered Source will create a new token when the event fires, the Wait for Event requires a token to already exist that will wait on the activity until the specified event fires.

In both cases you can tie the activity to listen to events like On Entry, On Message, etc. (Use the sample button and hover over the desired object to see a list of that object's events). Each events passes in different parameters that you get access to (for instance, a reference to an entering or exiting item). You can store off the parameters and then send the token through a set of activities to perform whatever logic you're trying to accomplish.

· 3
5 |100000

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