8.4.0 • Published 1 year ago

@camunda8/tasklist v8.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Camunda 8 Tasklist API client for Node.js

NPM

Community Extension

Lifecycle

License

A Camunda 8 Tasklist API client for Node.js. Uses camunda-saas-oauth-nodejs to use client credentials from the environment for authentication.

Installation

npm i camunda-tasklist-client

Usage

Set the credential for Camunda SaaS in the environment, then:

import { TasklistApiClient } from 'camunda-tasklist-client'

const tasklist = new TasklistApiClient()

async function main() {
    const { tasks } = await tasklist.getTasks({ state: 'CREATED' })
    const task = tasks[0]
    console.log('Task', JSON.stringify(task, null, 0))
    const taskid = task.id
    const assignedTask = await tasklist.assignTask({ taskId: taskId, assignee: 'jwulf', allowOverrideAssignment: false })
}

main()

Full API documentation available here.

8.4.0

1 year ago