DeleteExpiredProcessInstances

Description

This timer allows you to delete expired process instances.

It is used with the following Configuration Properties / tim.properties | Timer Settings:

delete-timer-keep-instances-min The timer cannot archive instances which are younger than this date, regardless of what your expirationTime parameter is.

delete-timer-archive-state-check This boolean property gives the possibility to delete instances via timer without checking the archive or end state. Take care if you really want to change this.

 

As this timer deletes many rows in many database tables it is frequently happening that database locks are created and thus the instances cannot be deleted. Therefore it is necessary to run the timer during non working hours on productive systems (preferably in the night).


Webservice Name

ProcessInstanceManager

Webservice Method

deleteExpiredProcessInstances

Parameter

Parameter

Description

Valid examples

Parameter

Description

Valid examples

processDefinitionName

This parameter is used to set the process instance definition to be deleted. Wildcards can be used with *.

Financeprocess*

expirationTime

This parameter is used to set the expiration time of the process instances to be deleted.

2y
mon (month)
w (week)
d (day)
h (hour)

limit

This parameter is used to set the limit of the process instances to be deleted.

2000

chunkSize

This parameter is used to define the amount of instances that are deleted in a single transaction.

100

 

Example:

Â