Description

The high-level client for Operate.

Example

const operate = new OperateApiClient()

operate.searchProcessInstances({
filter: {
state: "ACTIVE"
},
size: 50
}).then(instances => {
console.log(instances)
})

Constructors

Properties

oAuthProvider: IOAuthProvider
rest: Promise<Got>
tenantId: undefined | string
userAgentString: string

Methods

  • Parameters

    • processInstanceKey: string | number

    Returns Promise<ChangeStatus>

    Description

    Delete a specific process instance by key.

    Throws

    Example

    const operate = new OperateApiClient()
    await operate.deleteProcessInstance(2251799819847322)
  • Returns Promise<{
        accept: string;
        authorization: string;
        content-type: string;
        user-agent: string;
    }>

  • Parameters

    • key: string | number

    Returns Promise<Incident>

    Description

    Retrieve an incident by incident key.

    Throws

    Example

    const operate = new OperateApiClient()
    const incident = await operate.getIncident(2251799818436725)
    console.log(incident.message)
  • Type Parameters

    • T extends {
          [key: string]: JSONDoc;
      }

    Parameters

    • processInstanceKey: string | number

    Returns Promise<T>

    Description

    Retrieve the variables for a Process Instance as an object, given its key

    Throws

  • Parameters

    • processInstanceKey: string | number

    Returns Promise<ProcessInstance>

    Description

    Retrieve a specific process instance by id.

    Throws

    Example

    const operate = new OperateApiClient()
    const instance = await operate.getProcessInstance(2251799819847322)
  • Parameters

    • processInstanceKey: string | number

    Returns Promise<string[]>

    Description

    Get sequence flows of process instance by key

    Throws

Generated using TypeDoc