Functions
This topic describes the functions that can be used in query filters.
Event Collector has some functions that can be used with the operand operator filter expression syntax. See Filter Expression Format.
Functions for Common Search Criteria
The format of a function described in the table below is:
function(attribute)where:
- function: one of the functions described in the table below.
- attribute: identifies the type of information to be retrieved. The type of object (for example, process instance or work item) defines the Event Collector table against which the query will execute. The attribute you include with the function depends on the type of object you are interested in. See Using Attributes in Query Language.
Function | Description |
---|---|
isSet(attribute) | Returns all events where the named attribute has a value of NULL in the Event Collector audit table you are querying. This is useful in cases where data is not always populated and you only want to return rows that contain data. For example, case objects that are deleted. |
currentDay(attribute) | Returns all events where the named attribute has a value in the Event Collector audit table you are querying occurring today. Attribute must be of DateTime type. |
currentWeek (attribute) | Returns all events where the named attribute has a value in the Event Collector audit table you are querying occurring this week. Attribute must be of DateTime type. |
currentMonth(attribute) | Returns all events where the named attribute has a value in the Event Collector audit table you are querying occurring this month. Attribute must be of DateTime type. |
currentYear(attribute) | Returns all events where the named attribute has a value in the Event Collector audit table you are querying occurring this year. Attribute must be of DateTime type. |
currentUser(attribute) | Returns all events where the named attribute has a value in the Event Collector audit table you are querying for the currently authenticated user. |
Functions for Common Objects
Function | Description |
---|---|
processInstance(instanceId, details) | Returns the audit trail for the specified process instance where:
|
workItem(workItemId, details) |
Returns the audit trail for the specified work item where:
|
caseReference(caseRef, details) | Returns the audit trail for the specified case object where:
|
caseDetails(caseClass, modelMajorVersion, objectId, details) |
Returns the audit trail for the specified case object where:
|
Functions for Comments
Function | Description |
---|---|
processInstanceComments(instanceId) | Returns all comments stored against the specified process instance where instanceId identifies the process instance ID whose comments you want to return. instanceId can be obtained from listProcessInstances, queryProcessInstances or queryProcessInstancesAlt. |
workItemComments(workItemId) | Returns all comments stored against the specified work item where workItemId identifies the work item ID whose comments you want to return. workItemId can be obtained from getWorkListItems. |
caseReferenceComments(caseRef) | Returns all comments stored against the specified case object where caseRef identifies the reference to the case object. You can obtain case references using findAllCases. |
caseDetailsComments(caseClass,modelMajorVersion,objectId) |
Returns all comments stored against the specified case object where:
|
Copyright © Cloud Software Group, Inc. All rights reserved.