ContinuousSharePointCountManager

This timer periodically updates and reports the number of documents in SharePoint associated with process instances, including those linked through softlinks or subprocesses. It filters instances based on criteria such as open and archival status, and records the document count and the timestamp of the last update in specified variables within each process instance.

The SharePoint Connection must be active in order to use this timer.

Webservice Name

ContinuousSharePointCountManager

Webservice Method

countDocuments

Parameters

Parameter

Description

Parameter

Description

onlyOpenInstances

This parameter determines whether the method should include only open (not yet completed) process instances. It is expected to be a String that the method parses as a boolean. If this parameter is true, the query will include only instances that do not have an end date (i.e., they are still open).

onlyNonArchivedInstances

This parameter controls whether the method should include only non-archived process instances. Similar to the previous parameter, it is a String parsed as a boolean. If set to true, the query will filter out instances that are marked as archived.

countVariableName

This is the name of the process variable where the document count will be stored for each process instance. The method uses this name to update the document count in the specified process variable.

lastCheckVariableName

This is the name of the process variable where the timestamp of the last check will be stored. This parameter is used to record when the count was last updated

Example Parameters:

true,true,countVariable,lastChecked
Screenshot 2024-08-02 144356.png

After starting the timer, the report successfully displays both the document count and the timestamp of the last check within each process instance, as specified by the countVariable and lastChecked variables.

Screenshot 2024-08-02 145837.png