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
-
id(required): string
Process Instance Id
Supported Media Types
- application/json
Nested Schema : BaseInstanceActionInput
Type:
Show Source
object
-
instanceActionProps: object
InstanceActionProps
Additional Properties Allowed: additionalPropertiesa (key, MapItem) map. `default`is an example key.
Nested Schema : properties
Type:
Show Source
object
-
action: string
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 -
dataObjects:
VariablesMap
Additional Properties Allowed: additionalPropertiesA (key, MapItem) map. `default`is an example key.
-
deletions: array
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 : default
Type:
object
Nested Schema : additionalProperties
Type:
object
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
successful operation
Root Schema : ModelApiResponse
Type:
Show Source
object
-
message: string
Response message
-
type: string
Allowed Values:
[ "ok" ]
API response type
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.
Examples
401 Response
Unauthorized
Examples
403 Response
The process execution cannot be instantiated because of Process restrictions
Examples
404 Response
The process instance with given ID is not found
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.
500 Response
Internal server error
Examples