camunda-tasklist-client
TypeScript icon, indicating that this package has built-in type declarations

0.9.7 • Public • Published

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: TaskState.CREATED})
    const task = tasks[0]
    console.log('Task', JSON.stringify(task, null, 0))
    const taskid = task.id
    const task = await tasklist.claimTask(taskid,"jwulf")
}

main()

Full API documentation available here.

Readme

Keywords

Package Sidebar

Install

npm i camunda-tasklist-client

Weekly Downloads

367

Version

0.9.7

License

ISC

Unpacked Size

47.6 kB

Total Files

18

Last publish

Collaborators

  • sitapati