question

sanaz karamimoghaddam avatar image
0 Likes"
sanaz karamimoghaddam asked Sam Stubbs commented

How to assign down time on Process Flow activities?

Hi, Some of the activities in my process flow have a work schedule, meaning that they can only be performed during certain hours. How can I program this. Is there a way that I can use a time table for it?

time tablescheduled down
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

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Sam Stubbs commented

I would use a List to represent which Activities are active. Have any tokens that are utilizing that activity pull from a List (but check the box to leave entries on the list) Then have a Scheduled Source, that at the designated time sends a token to pull from the List (without leaving it on list) and Delay it for the amount of time equal to the "Down" time before pushing it back onto the list again. You can have this schedule repeat as well.

I've included a small example of how to set this up.

pf-schedule.fsm


pf-schedule.fsm (23.9 KiB)
· 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.

sanaz karamimoghaddam avatar image sanaz karamimoghaddam commented ·

Thanks a lot!

It worked very well for my model.

0 Likes 0 ·
sanaz karamimoghaddam avatar image sanaz karamimoghaddam commented ·

@Sam Stubbs

On top of this, do you think there is a way to restrict the activities from being continued. This is for activities that take 2-3 days and the shift has to stop a few times while the activity is being completed.

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ sanaz karamimoghaddam commented ·

Yes there are activities in Process Flow for doing this. Look under the Preemption section, there's an activity called Release Token. You'll have to be careful when releasing the token so that it doesn't mess other things up. But this is allows for a token to be released from it's current activity to another. You can also use the save Context and Restore Token Context to allow that token to return to it's previous function as well.

1 Like 1 ·
sanaz karamimoghaddam avatar image sanaz karamimoghaddam Sam Stubbs ♦ commented ·

Thanks @Sam Stubbs

Does this only work with Delay activity and not the activities that are done using a Task Executer? I used a delay activity from task sequences activities with a reference to a TE and it doesn't restore the delay information. But it does work with the Delay under Basic activities.

0 Likes 0 ·
Show more comments

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.