camunda-tasklist-client
v0.9.7
Published
A Camunda 8 Tasklist API client for Node.js
Downloads
1,993
Readme
Camunda 8 Tasklist API client for Node.js
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.