StartProcessInstanceByTime

Description

This timer takes a specific timestamp or a timespan as parameters and if it is in the past, the timer checks whether an instance has been started already on this day. If that is not the case, a new process instance is started.


Webservice Name

ProcessInstanceManager

Webservice Method

createProcessInstancesByHandler

Parameter

action_handler,name_of_process;day_of_week-hour:minutes

Parameter

Description

Parameter

Description

action_handler

It is the actionhandler that is called by the timer. Normally: com.dooris.bpm.actionhandler.StartProcessInstanceByTime

name_of_process

Name of the process definition that should be started. (e.g. TestLane)

day_of_week-hour:minutes

Contains the period in question or the time.

e.g.2-12:45&2-13:15) means: Monday between 12:45-13:15.

e.g.3-10:00&4-20:00) means: between Tuesday 10:00 and Wednesday 20:00.

You can also set only one day with no range.

e.g. .1-12:45 means Sunday at 12:45

 

The day of week starts with Sunday:

1 = Sunday

2 = Monday

3 = Tuesday

4 = Wednesday

5 = Thursday

6 = Friday

7 = Saturday




A valid example: Start Instance On Certain Days of Week and Time by Timer

Screenshot 2024-08-08 134829.png

Case 1: One daytime Entry

2-12:45:03 If only one daytime entry is entered, the timer will check If another process instance has already been started on the same day, and if no instances have been started yet, the timer will start a new instance at 2-12:45 which will be Monday at 12:45.

Case 2: Multiple Daytime Entries

2-12:45&4-13:15 If two different daytime entries are entered, the timer will check on 2-12:45 which will be Monday at 12:45 and 4-13:15 which will be Thursday at 13:15. If another process instance has already been started within this timespan, the timer will not initiate a new instance. However, if no instances have been started yet, the timer will start a new instance.