Use Query APIs to read indexed process and task data. Use these APIs when a script needs to retrieve information about process or task state without performing runtime changes.
Query APIs provide read-only access to indexed runtime data. They are intended for searches and lookups, such as finding process instances or tasks that match specific criteria.
The following Query APIs are available:
| Query API | Description |
|---|---|
| Process Query API |
Retrieves indexed process instance data within the normal user scope. Use it when a script needs to search for or inspect process state without changing the process. |
| Process Query Admin API |
Retrieves indexed process instance data using administrative access. Use it when an administrative script needs broader visibility into process instances beyond the normal user scope. |
| Task Query API |
Retrieves indexed task data within the normal user scope. Use it when a script needs to search for or inspect task state without changing the task. |
| Task Query Admin API |
Retrieves indexed task data using administrative access. Use it when an administrative script needs broader visibility into tasks beyond the normal user scope. |