REST interface for BPEL-related process resources - Activity Instance List Resource - GET Method

Use this method to retrieve a list of activity instances.

Sample method invocation

GET /rest/bpm/bfm/v1/activities/filter[?whereClause={string}][&orderByClause={string}][&offset={integer}][&size={integer}]

Parameters

Optional Parameters
NameValue TypeDescription
whereClause string
Specifies the filter criteria applied when the query runs.
orderByClause string
Orders the result of the query execution by the values of the columns you identify.
offset integer
Return results after the specified list entry.
size integer
Maximum number of list entries to be returned.

Request Content

None

Response Content

List of activity instances.

The default content-type is application/json.

MIME Type: application/json


Schema
{  "description": "Activity List",
   "type": "object",
   "properties":
   {  "identifier" : {"type": "string"},
      "items": 
      [
         {  "activationTime": {"type": "string", "format": "date-time",
               "description": "Activation time of the activity instance."
            },
            "aiid": {"type": "string",
               "description": "Activity instance object ID."
            },
            "completionTime": {"type": "string", "format": "date-time",
               "description": "Completion time of the activity instance."
            },
            "description": {"type": "string",
               "description": "Description of the activity instance."
            },
            "executionState": {"type": "string", 
               "description": "Execution state of the activity instance.",
               "enum":
               [
                  "STATE_CLAIMED",
                  "STATE_EXPIRED",
                  "STATE_FAILED",
                  "STATE_FAILING",
                  "STATE_FINISHED",
                  "STATE_INACTIVE",
                  "STATE_PROCESSING_UNDO",
                  "STATE_READY",
                  "STATE_RUNNING",
                  "STATE_SKIPPED",
                  "STATE_STOPPED",
                  "STATE_TERMINATED",
                  "STATE_TERMINATING",
                  "STATE_WAITING"
               ]
            },    
            "expirationTime": {"type": "string", "format": "date-time",
               "description": "Time when the activity instance will expire or expired."
            },
            "kind": {"type": "string", 
               "description": "Kind of the activity, for example, whether the activity is a pick or receive activity.",
               "enum":
               [
                  "KIND_ASSIGN",
                  "KIND_COMPENSATE",
                  "KIND_COMPENSATE_SCOPE",
                  "KIND_CUSTOM",
                  "KIND_EMPTY",
                  "KIND_FLOW",
                  "KIND_FLOW_END",
                  "KIND_FOR_EACH_PARALLEL",
                  "KIND_FOR_EACH_PARALLEL_END",
                  "KIND_FOR_EACH_SERIAL",
                  "KIND_FOR_EACH_SERIAL_END",
                  "KIND_INVOKE",
                  "KIND_INVOKE_END",
                  "KIND_PICK",
                  "KIND_PICK_END",
                  "KIND_RECEIVE",
                  "KIND_REPEAT_UNTIL",
                  "KIND_REPEAT_UNTIL_END",
                  "KIND_REPLY",
                  "KIND_RETHROW",
                  "KIND_SCOPE",
                  "KIND_SCOPE_END",
                  "KIND_SCRIPT",
                  "KIND_SEQUENCE",
                  "KIND_SEQUENCE_END",
                  "KIND_STAFF",
                  "KIND_SWITCH",
                  "KIND_SWITCH_END",
                  "KIND_TERMINATE",
                  "KIND_THROW",
                  "KIND_WAIT",
                  "KIND_WHILE",
                  "KIND_WHILE_END"
               ]
            },
            "name": {"type": "string",
               "description": "Name of the activity instance."
            },
            "owner": {"type": "string",
               "description": "Owner of the activity instance."
            },
            "processInstanceID": {"type": "string",
               "description": "ID of the containing process instance."
            },
            "processInstanceName": {"type": "string",
               "description": "Name of the process instance the activity belongs to."
            },
            "processTemplateID": {"type": "string",
               "description": "ID of the process template that contains the activity definition."
            },
            "processTemplateName": {"type": "string",
               "description": "Name of the first process template in the hierarchy that contains the activity definition."
            },
            "startTime": {"type": "string", "format": "date-time",
               "description": "Start time of the activity instance."
            },
            "subState": {"type": "string", 
               "description": "The sub state of the activity instance.",
               "enum":
               [
                  "SUB_STATE_NONE",
                  "SUB_STATE_EXPIRING",
                  "SUB_STATE_SKIPPING",  
                  "SUB_STATE_RESTARTING", 
                  "SUB_STATE_FINISHING", 
                  "SUB_STATE_FAILING" 
               ]
            }            
         }
      ]
   }
}

Error Response Content

Detailed error information.

The default content-type is application/json.

MIME Type: application/json


Schema
{  "description": "Error Response", 
   "type": "object",
   "properties":
   {  "errorNumber": {"type": "string",
         "description":"Message ID of the exception."
      },
      "errorMessage": {"type": "string",
         "description":"Message text of the exception."
      },
      "errorMessageParameters": {"type": ["string"], "optional": true,
         "description":"Message text parameters of the exception."
      },
      "programmersDetails": {"type": "object", "optional": true,
         "description":"Additional, exception details, for example, a stack trace."
      }
   }
} 

Status codes

The method returns one of the following status codes:
CodeDescription
200 OK
Successful completion. The requested data is returned. Note that the list might be empty.
400 Bad RequestThe parameters are not valid or they are missing.
406 Not AcceptableThe requested content type or content encoding is not supported.
500 Internal Server ErrorA severe problem has occurred. Programmer's details are provided.

Change history

The following changes have been applied to this method:
ReleaseDescription
7.0
The returned activity instance list entries contain a new property:
  • "subState"

Available since

6.2

Parent topic: Activity Instance List Resource