Description

The high-level client for the Tasklist REST API

Example


Constructors

Properties

oAuthProvider: IOAuthProvider
rest: Promise<Got>
userAgentString: string

Methods

  • Parameters

    • __namedParameters: {
          allowOverrideAssignment?: boolean;
          assignee?: string;
          taskId: string;
      }
      • Optional allowOverrideAssignment?: boolean
      • Optional assignee?: string
      • taskId: string

    Returns Promise<TaskResponse>

    Description

    Assign a task with taskId to assignee or the active user.

    Throws

    Throws

    Status 400 - An error is returned when the task is not active (not in the CREATED state). Status 400 - An error is returned when task was already assigned, except the case when JWT authentication token used and allowOverrideAssignment = true. Status 403 - An error is returned when user doesn't have the permission to assign another user to this task. Status 404 - An error is returned when the task with the taskId is not found.

  • Parameters

    • taskId: string
    • Optional variables: JSONDoc

    Returns Promise<TaskResponse>

    Description

    Complete a task with taskId and optional variables

    Throws

    Throws

    Status 400 An error is returned when the task is not active (not in the CREATED state).

    Throws

    Status 400 An error is returned if the task was not claimed (assigned) before.

    Throws

    Status 400 An error is returned if the task is not assigned to the current user.

    Throws

    Status 403 User has no permission to access the task (Self-managed only).

    Throws

    Status 404 An error is returned when the task with the taskId is not found.

  • Parameters

    • formId: string
    • processDefinitionKey: string
    • Optional version: string | number

    Returns Promise<Form>

    Description

    Get the form details by form id and processDefinitionKey.

    Throws

  • Returns Promise<{
        accept: string;
        authorization: string;
        content-type: string;
        user-agent: string;
    }>

  • Parameters

    • __namedParameters: {
          includeVariables?: {
              alwaysReturnFullValue: boolean;
              name: string;
          }[];
          taskId: string;
          variableNames?: string[];
      }
      • Optional includeVariables?: {
            alwaysReturnFullValue: boolean;
            name: string;
        }[]
      • taskId: string
      • Optional variableNames?: string[]

    Returns Promise<VariableSearchResponse[]>

    Description

    This method returns a list of task variables for the specified taskId and variableNames. If the variableNames parameter is empty, all variables associated with the task will be returned.

    Throws

  • Parameters

    • taskId: string

    Returns Promise<TaskResponse>

    Description

    Unassign a task with taskId

    Throws

    Status 400 An error is returned when the task is not active (not in the CREATED state).

    Throws

    Status 400 An error is returned if the task was not claimed (assigned) before.

    Throws

    Status 404 An error is returned when the task with the taskId is not found.

    Throws

Generated using TypeDoc