Unify and manage your data

Terminate Process Instances in the Background

Learn how to terminate workflow process instances in the background using filter parameters and API requests.

This endpoint terminates process instances on the tenant using filters.

Request

Operation Endpoint:

POST 'https://prod-workflow.reltio.com/workflow-adapter/workflow/{tenantId}/jobs/terminateProcessInstances?background=true'
ParameterRequiredDescription
HeadersAuthorizationYesAccess Token in format "Bearer <accessToken>" (see details in Authentication API ).
Content-TypeYesShould be
"Content-Type:
                  application/json"
.
EnvironmentalURLYesReltio Environment URL.
ParametersbackgroundNoBackground false/true.
BodyprocessTypeYesProcess definition type.
objectURIsYesList of Reltio object URIs (entity/relation).
processDefinitionIdNoProcess definition ID.
assigneeNoAssignee of the active task.
createdByNoInitiator of the process instance.
startedAfterNoTime in milliseconds.
startedBeforeNoTime in milliseconds.
stateNoValidation state of process instance; default value=all; will return tasks with any state.

Response

Response Structure:

  • error: returned if an error is encountered, contains details of the issue:
    • errorCode: 5-digit error code
    • errorMessage: error message
    • errorData- details of the error:
      • exception: exception message
      • stack: stack trace
    • innerError: details of the error from Reltio API:
      • errorMessage: Reltio API error message
      • errorCode: Reltio API error code
      • innerErrorData: Reltio API inner error data
  • status: result of the operation; possible values are "OK" or "failed"

Request

{
   "processType":"dataChangeRequestReview",
   "objectURIs":[
      "entities/E8y5hJv"
   ],
   "processDefinitionId":"recommendForDelete:118:8842195",
   "assignee":"adminqa",
   "createdBy":"user3mosk",
   "startedAfter":1499680875124,
   "startedBefore":1500285675127,
   "state":"valid"
}

Response

{
   "status":"OK",
   "total":1,
   "data":[
      {
         "processInstanceId":"8900966"
      }
   ]
}