@camunda8/sdk
Version:
[](https://www.npmjs.com/package/@camunda8/sdk)
19 lines (14 loc) • 468 B
JavaScript
/* eslint-disable @typescript-eslint/no-explicit-any */
const { CamundaRestClient } = require('../dist/c8/lib/CamundaRestClient')
const camunda = new CamundaRestClient()
async function main() {
// We want to provoke an error and examine the error stack, and the headers.
await camunda
.activateJobs({
timeout: 1000,
maxJobsToActivate: 1,
// type: 'non-existing-job-type',
worker: 'test',
}).catch(e => console.error('Caught error:', e))
}
main()