Workflow process indexing and querying is still in beta. Please be aware that the functionality described below is still under review and may change.
The following methods are used to manage and query process instance data held in the SOLR search collection.
The initial search collection is built via an iCM Scheduled Tasks. Indexing must also be enabled in the Workflow worker configuration. Once the collection has been built it is kept up to date by the workflow worker (ie as new process instances start they are added, if they are deleted they are removed, and as variables change they are updated).
The SOLR search collection is a secondary data store (the primary being the database itself) and as such there can be a short delay between data being updated and that update being present in the search collection.
Process Variables
Process variables created by form submissions are only indexed if the form fields they relate to (ie the field with the same name as the variable) are set as searchable in the "summary form" used by the process instance (the summary form a process uses is named in the
To set a field as searchable, set the Searchable property as true:
All of the searchable variables are indexed into a single field, pipe separated, where each entry is a key value pair, made up of the name of the variable and its value. For example
Each searchable variable is also indexed into its own dynamic field in the search collection which can be used as the
The responses from
Case Management
Case Management cases are active workflow process instances, so are indexed in a similar way to regular processes.
The following fields are always indexed, even if not set as searchable in the summary form used by the process instance:
{
"assignGroupFull": "",
"assignGroupName": "",
"assignUserFull": "",
"assignUserName": "",
"proxyFullName": "",
"timerPausedDelay": "",
"timerPausedTarget": "",
"updatingSLA": "",
"form_ADDRESSTEXT": "",
"form_CASESTAGENAME": "",
"form_CASETARGETDATE": "",
"form_CASETYPE": "",
"form_CASESUBTYPE": "",
"form_EMAILADDRESS": "",
"form_LOCATION": "",
"form_NAME": "",
"form_NEWTARGETDATE": "",
"form_ONBEHALFOFNAME": "",
"form_PHONENUMBER": "",
"form_POSTCODE": "",
"form_STATUS": ""
}