How to assign down time on Process Flow activities?

How to assign down time on Process Flow activities?

sanaz_karamimoghaddam
Not applicable
260 Views
6 Replies
Message 1 of 7

How to assign down time on Process Flow activities?

sanaz_karamimoghaddam
Not applicable

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?

0 Likes
Accepted solutions (1)
261 Views
6 Replies
Replies (6)
Message 2 of 7

sam_stubbsYXX86
Community Manager
Community Manager
Accepted solution

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

Message 3 of 7

sanaz_karamimoghaddam
Not applicable

Thanks a lot!

It worked very well for my model.

0 Likes
Message 4 of 7

sanaz_karamimoghaddam
Not applicable

@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
Message 5 of 7

sam_stubbsYXX86
Community Manager
Community Manager

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.

Message 6 of 7

sanaz_karamimoghaddam
Not applicable

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
Message 7 of 7

sam_stubbsYXX86
Community Manager
Community Manager

It's a good question. Honestly I'm not sure, the Preemption Activities are a fairly new feature. I know they are designed work with the basic activities I don't know if they save the context of Task Sequences.

0 Likes