REST API - queryProcessInstanceCountAlt - Using Statusmode and query Request
The table summarizes the REST API - queryProcessInstanceCountAlt.
Request
Format | GET <baseurl>/process/alt/count/instance/{statusmode}/{query} |
Path parameters | statusmode: The valid options are ACTIVE, TERMINATED, ACTIVE_AND_TERMINATED.
query: Query string (in SQL syntax). The query can be either a full SQL query string, or just the WHERE clause. If a full query string is used, the "FROM process" clause should be included. For information about valid SQL syntax, see Sorting and Filtering Lists of Process Templates and Instances. |
Response
JSON | If successful, returns 200 OK in the response header, and instance count in the response body. |
XML | If successful, returns 200 OK in the response header, and instance count in the response body. |
Example
Request | GET <baseurl>/process/alt/count/instance/ACTIVE/SELECT * FROM process WHERE DEFINITION.NAME='GetandViewData' |
Response | 5 |