List Process Instances

get

/process/api/v1/instances

List process instances user has access to including structured and dynamic processes

Request

Query Parameters
  • Restrict query to all process instances that belongs given application name
  • Restrict query to all process instances that belongs given application name like
  • Restrict query to all process instances that belongs given application version
  • True when the logged in user is a member.
    Default Value: false
    Example:
    Get instances where I am a member (asMember=true)
  • Business Key of the Process instance
  • Business Key of the Process instance
  • Restrict to instances that were closed after the given date. The date string must be in the ISO-8601 standard format. Example - 2019-01-23T12:34:56.123456789Z (for UTC), 2019-01-23T12:34:56.123456789+02:30 (with offset)
    Example:
    2021-01-30T08:30:00.000+00.00
  • Restrict to instances that were closed before the given date. The date string must be in the ISO-8601 standard format. Example - 2019-01-23T12:34:56.123456789Z (for UTC), 2019-01-23T12:34:56.123456789+02:30 (with offset)
    Example:
    2021-01-30T08:30:00.000+00.00
  • Restrict to instances that were created after the given date. The date string must be in the ISO-8601 standard format. Example - 2019-01-23T12:34:56.123456789Z (for UTC), 2019-01-23T12:34:56.123456789+02:30 (with offset)
    Example:
    2021-01-30T08:30:00.000+00.00
  • Restrict to instances that were created before the given date. The date string must be in the ISO-8601 standard format. Example - 2019-01-23T12:34:56.123456789Z (for UTC), 2019-01-23T12:34:56.123456789+02:30 (with offset)
    Example:
    2021-01-30T08:30:00.000+00.00
  • Only include process instances that were created by the given user.
  • Data Management State of the instance
    • Allowed Values: [ "RESTORED", "SOFT_DELETED" ]
  • Restrict query to all process instances that are in not in faulted state
  • Filter by process instance Ids
  • Filter instances by keyword. This filters instances by partial matches of the keyword in the instance title
  • Minimum Value: 5
    Maximum Value: 500
    Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.
    Default Value: 25
  • The label of member. Use with asMember=true.
    Example:
    Get instances where I am owner (asMember=true&memberLabel=Owner) OR get instances where the label is Owner and also jstein is a member(asMember=true&memberLabel=Owner&withMemberIdentityId=<jstein-id>).
  • permission level of the member. Used with asMember=true.
    Example:
    Get instances where the permission is MANAGE (asMember=true&memberPermission=MANAGE).
  • Minimum Value: 0
    Pagination of results. Specifies the index of the first result to return.
    Default Value: 0
  • This query parameter specifies the orderBy clause. Supported sortBy fieldName should be any of: processDefId,processDefKey,startTime,endTime,appName,appVersion,creatorUserId,processName,processTitle, processType,processDesc,businessKey,state The value must follow the format fieldName[:(asc/desc)]. e.g. priority:asc. Multiple ordering is not supported. Default sortOrder is asc if not specified. Default orderBy is startTime:desc
  • Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance ID.
  • Filter by process definition ID. Exact match
  • Filter by process definition key. Exact match
  • Exclude instances that belong to a set of process definitions. Must be a comma-separated list of process definition keys.
  • Filter by the name of the process definition the instances run on.
  • Filter by process definition names that the parameter is a substring of.
  • Restrict query to all process instances whose root process instance ID is the given process instance. Takes a process instance ID.
  • Sort the results by the given set of columns
    Allowed Values: [ "processDefId", "processDefKey", "startTime", "endTime", "appName", "appVersion", "creatorUserId", "processName", "processTitle", "processType", "processDesc", "businessKey", "state" ]
  • Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter.
  • Restrict query to all process instances that are in given states. This is a union of all possible states of a Dynamic process and a Structured process. States specific to a Dynamic process are ACTIVE, CLOSED, COMPLETED, SUSPENDED, FAULTED and TERMINATED. States specific to a Structured process are ACTIVE, COMPLETED, SUSPENDED, FAULTED, TERMINATED
    • Allowed Values: [ "ACTIVE", "COMPLETED", "TERMINATED", "SUSPENDED", "FAULTED", "CLOSED" ]
  • Specifies if total number of results need to be returned
    Default Value: false
  • Filter by the type of the process instance. Exact match. By default, both structured and dynamic process instances will be returned
    Allowed Values: [ "DYNAMIC", "STRUCTURED" ]
  • Member idenitityId. Use with asMember=true.
    Example:
    Get instances where I am a member along with jstein-id (asMember=true&withMemberIdentityId=<jstein-id>).
Header Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : Instances
Type: object
Match All
Show Source
Nested Schema : BaseInstances
Type: object
Match All
Show Source
Nested Schema : CommonModel
Type: object
Show Source
Nested Schema : PaginationResponse
Type: object
Pagination details
Show Source
Nested Schema : Instances-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Instance
Type: object
Match All
Show Source
Nested Schema : BaseInstance
Type: object
Match All
Show Source
Nested Schema : BaseInstance-allOf[1]
Type: object
Show Source
Nested Schema : Instance-allOf[1]
Type: object
Show Source
Nested Schema : availableActions
Type: array
Show Source
Nested Schema : UserOrAppClient
Match All
Show Source
Nested Schema : Discriminator: type
Type: object
Show Source
Nested Schema : IdentityCommon
Type: object
Show Source

400 Response

Returned if some query parameters are invalid. For example, if a sortOrder parameter is supplied, but no sortBy.
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

401 Response

Unauthorized
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

429 Response

Too many requests. Some requests are blocked to prevent the service from going down due to heavy load.

500 Response

Internal server error
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

503 Response

Too many exceptions or too slow requests
Back to Top