Create a System query
You can create a system query and view the completed work performed in the system.
-
Navigate to
.
The System queries page appears.
-
Click
New.
The New system query dialog box is displayed.
- Enter a Name for the System query.
-
Select the
Category in which to create a system query.
By default, the query is added to your working category.
-
Optional. Select
Return query total to view the total number of items matching the query.
(Default: Clear)
At runtime, the total number of items regardless of the retrieval limit specified in the query is displayed.
If you select this option, there may be a performance overhead. - To specify the number of the latest activities that are to be retrieved from the server at a given point in time, set the Retrieval limit. (Default: 100)
- To view the completed work performed in the system to help you analyze and identify the areas of concern, select Completed work. (Default: Clear)
- Specify the filter criteria.
-
Define the
metadata.
- Select a Work type and the Filter operator.
- Configure and add the required meta fields.
- Add columns, provide access control, and sort columns, and add filter fields in the query.
-
Click
Save.
-
When you run the system query, all activity types including the custom service activities if any are included in the query.
-
When you use the system query in a Chart control, the custom service activities are also displayed.
-
When you run a system query that filters on a specific custom service grouping, only activities of that type are displayed.
-
Filter criteria for a System query
The following table describes the system fields available as search criteria.
Field |
Description |
---|---|
Activity name |
Name of the activity |
Type |
The type of activity such as All, Normal, or Alert. (Default: All) |
Assigned to |
Includes the following:
|
Activity SLA |
The status of the activity. Green, Amber, Red (Default: All) The activity SLA status is the visual representation of the activity status on your work queue to indicate if the activity is within or has exceeded the set time limits, that is, target duration. |
Work queue automation |
If selected, allows you to retrieve tasks completed by Work queue automation. This option is only available if "Completed work" is selected and if you set "Completed by" as "Anyone" or "Assigned resource". |
Pending time |
Displays for how long the activity has been pending. The values include:
|
Activity status |
Displays the status of the activity as:
|
Priority type |
Allows selection of priority type as Activity or Job. (Default: Activity) The Priority type and Priority fields are not available if Completed work is selected. |
Priority |
For activity priority, accepted values are from 1 to 10 and for job priority, accepted values are from 1 to 100. (Highest: 1, Lowest: 10,100) (Default: All) |
Case tasks only |
If selected, displays activities that only belong to cases. (Default: Clear) |
Node type |
Allows selection of an activity type, such as Create new job. (Default: All) The Node type drop-down also includes the custom service groups only when the "Assigned to" field is set to System or Core worker service. |
Suspend reason |
The reason for suspension of the job. |
Machine name |
Displays the list of available machine names (default: All). The machine name is available as a column and on the sorting order list.
|
The following table describes the time filters, job fields, dates, and metadata available as search criteria.
Field |
Description |
---|---|
Time filters |
|
Time pending |
Displays how long the activity has been pending for a specific period in days, hours, minutes, and seconds. For example, you can search for activities that are pending for less than 5 seconds, greater than 1 minute or greater than 4 hours, or greater than 2 days 6 hours. |
Time spent |
Displays how many seconds it took to complete the activity (that is, how long the activity was in a taken state) in days, hours, minutes, and seconds. For example, you can search for the activities that took less than 5 seconds to complete, or greater than 1 minute, or greater than 4 hours, or greater than 2 days 6 hours. The Time spent filter becomes available only when you select Completed work at both design time and
runtime.
|
Job |
|
Job ID |
The ID of the case job. |
Process |
Allows selection of a Process or Case based on which the job is created. |
Job SLA |
The status of the job. All, Green, Amber, Red (Default: All) The job SLA status is the visual representation of the job status on your work queue to indicate if the job is within or has exceeded the set time limits, that is, target duration. |
Case reference |
Case reference based on which the job is created. |
Job state |
Name of the state associated with the process. |
Due date order |
Allows selection of Activity or Job. (Default: Activity) |
Dates |
|
Due date |
Available options are All (default), Since, Between, Today, This week, This month, and This year.
|
Metadata |
Creates filter criteria by selecting the work type and corresponding fields. See Create metadata. |
Sort columns in System queries
You can define a custom sort order using the columns available in System queries.