Skip to content

camunda/camunda-bpmn-js-behaviors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

95c7d1b · Feb 28, 2025
Jan 13, 2025
Dec 13, 2024
Jan 23, 2025
Apr 21, 2022
Jan 23, 2025
Apr 21, 2022
Dec 20, 2023
Oct 16, 2024
Oct 14, 2024
Feb 28, 2025
Feb 28, 2025
Sep 29, 2022

Repository files navigation

camunda-bpmn-js-behaviors

CI

Behaviors for bpmn-js ensuring that parts of the model that are specific to Camunda 7 and 8 are maintained. For example, the Camunda 8 behaviors will ensure that a bpmn:BusinessRuleTask element will not have a zeebe:CalledDecision and zeebe:TaskDefinition extension element at the same time.

Usage

Camunda 7

import camundaPlatformBehaviors from 'camunda-bpmn-js-behaviors/lib/camunda-platform';

const bpmnModeler = new BpmnModeler({
  container: '#container',
  additionalModules: [
    camundaPlatformBehaviors
  ]
});

bpmnModeler.importXML('...');

Camunda 8

import camundaCloudBehaviors from 'camunda-bpmn-js-behaviors/lib/camunda-cloud';

const bpmnModeler = new BpmnModeler({
  container: '#container',
  additionalModules: [
    camundaCloudBehaviors
  ]
});

bpmnModeler.importXML('...');

Development Setup

Prepare the project by installing all dependencies:

npm install

Then, depending on your use-case, you may run any of the following commands:

# lint and run tests once
npm run all

# run the tests in watch mode
npm run dev

License

MIT

Uses bpmn-js licensed under the bpmn.io license.