0.5.1 • Published 9 months ago

@camunda/bpmn-copilot-client v0.5.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
9 months ago

BPMN Copilot

Build Status

Home of the BPMN Copilot.

Use BPMN Copilot

import Copilot from '@camunda/bpmn-copilot-client';

const copilot = new Copilot({
  bpmnjs,
  invoke: async (invokeCommandInput, signal) => {
    return fetch('aws', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify(invokeCommandInput),
      signal
    });
  },
  executionPlatform: 'Camunda Cloud', // defaults to "Camunda Cloud"
  executionPlatformVersion: '8.6', // defaults to "8.6"
  exporter: 'Camunda BPMN Copilot', // defaults to "Camunda BPMN Copilot"
  exporterVersion: '0.1.0' // defaults to version found in package.json
});

const {
  response,
  cancel
} = copilot.invoke('Create a hiring process');

response.then(message => {
  // show message
});

// cancel invokation
cancel();

Run tests

  1. run npm install to install dependencies
  2. run npm test to run tests

Run demo

See README

Release client

  1. Prepare:
    1. Ask IT to grant you the Member role of the @camunda npm organization
    2. Run npm install
  2. Choose a new version number following SemVer conventions
  3. Update the CHANGELOG. Commit to main (but don't push yet).
  4. Run np and follow the instructions.
  5. Verify:
    1. New version was published to npm
    2. Changes were pushed to GitHub
    3. GitHub release was created
0.5.1

9 months ago

0.5.0

9 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.3.3

10 months ago

0.3.2

10 months ago

0.3.1

10 months ago

0.3.0

10 months ago