question

martin.j avatar image
1 Like"
martin.j asked Adrian Haws edited

Using Time Tables with Process Flow activities

Is there a way to use Time Tables to control Token Source Activities in Process Flow? Currently I am creating tokens with a Interarrival Token Source, but I would like to control the Token Source with a Time Table in the same way I would a Flow Item Source, but apparently Process Flow activities are not supported by the Time Table. I considered writing some code in the OnDown event of the Time Table, but I am not even sure the stopobject() command works on Process Flow activities, so whats is the alternative?

process flowtimetablesscheduleprocess flow preemption
5 |100000

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

martin.j avatar image
8 Likes"
martin.j answered Brandon Peterson commented

Thanks Sam, but unfortunately this doesnt quite solve my problem since I want to control individual processflow activities with the Time Table.

Its a bit complicated but I may have found a work around though: By using the new preemption activities I have created a flow that spawns tokens and can be preempted when the Time Table dictates it.

In the above flow the Delay activity would be the interarrival delay. When the Time Table OnDown event occurs it would spawn a token in the "Preempt" activity, which will save the state of the token in the Delay activity and then release it to the Preempted Tokens activity. When the OnResume event of the Time Table occurs it will spawn a token in the End Preempt activity and the token in Preempted Tokens will be restored to the Dealy activity.

Having all this replace a single Interarrivel Source activity seems a bit excessive but its the most elegant way to control the flow of tokens that I can think of. Let me know if you anyone has a better idea.


processflow.png (17.5 KiB)
· 2
5 |100000

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

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Sam Stubbs edited

So time tables are used to mark when objects or "Down" or "Resuming." If you want process flow to be triggered in correlation to one of these triggers, you can can use an Event-Triggered Source. If you open up your Time Table properties, under the functions tab, you can actually use the eyedropper from the Event-Triggered Resource to "sample" the On Down or On Resume triggers. This will let you use those triggers from the Time Table to generate tokens and use in a Process Flow.

I'll also include a very simple model illustrating this in practice.

processflowtimetable.fsm


5 |100000

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