Perform an Action on Process Instance

put

/process/api/v1/instances/{id}

Perform the specified action on the process instance. Supported actions are TERMINATE, SUSPEND, RESUME, ALTER_FLOW for a Structured Process and CLOSE, COMPLETE, SUSPEND, RESUME, TERMINATE for a Dynamic Process. The TERMINATE action of a dynamic process is controlled by the terminateChildInstances property flag (boolean value). If set to true, it terminates all the linked structured processes. When set to false, the linked structured processes are active. By default, this property is set to false. You can also specify the reason when using this flag.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Match All
Show Source
Nested Schema : BaseInstanceActionInput
Type: object
Show Source
Nested Schema : properties
Type: object
Show Source
  • Allowed Values: [ "CLOSE", "COMPLETE", "SUSPEND", "TERMINATE", "RESUME", "UPDATE", "ALTER_FLOW" ]
    The action to perform on the instance. CLOSE, COMPLETE, SUSPEND, RESUME and TERMINATE are valid actions for a Dynamic Process. SUSPEND, RESUME and TERMINATE, ALTER_FLOW are valid actions for a Structured Process
  • VariablesMap
    Additional Properties Allowed: additionalProperties
    A (key, MapItem) map. `default`is an example key.
  • deletions
Nested Schema : InstanceActionProps
Type: object
Additional Properties Allowed
Show Source
a (key, MapItem) map. `default`is an example key.
Nested Schema : VariablesMap
Type: object
Additional Properties Allowed
Show Source
A (key, MapItem) map. `default`is an example key.
Show Source
Nested Schema : deletions
Type: array
Show Source
Nested Schema : default
Type: object
Nested Schema : additionalProperties
Type: object
Examples

Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : ModelApiResponse
Type: object
Show Source
Examples

204 Response

successful operation

400 Response

The process instance action request is invalid, that is if InstanceAction input is null or contains invalid action.
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

403 Response

The process execution cannot be instantiated because of Process restrictions
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

404 Response

The process instance with given ID is not found
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

409 Response

The state transition is not allowed to be performed. For example, when the process instance is already in terminal state completed or terminated.
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source

500 Response

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

Back to Top