camunda-bpmn-js-behaviors
Version:
Camunda Platform 7 and 8 behaviors for bpmn-js
63 lines (41 loc) • 1.45 kB
Markdown
[](https://github.com/camunda/camunda-bpmn-js-behaviors/actions?query=workflow%3ACI)
Behaviors for [bpmn-js](https://github.com/bpmn-io/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.
```js
import camundaPlatformBehaviors from 'camunda-bpmn-js-behaviors/lib/camunda-platform';
const bpmnModeler = new BpmnModeler({
container: '#container',
additionalModules: [
camundaPlatformBehaviors
]
});
bpmnModeler.importXML('...');
```
```js
import camundaCloudBehaviors from 'camunda-bpmn-js-behaviors/lib/camunda-cloud';
const bpmnModeler = new BpmnModeler({
container: '#container',
additionalModules: [
camundaCloudBehaviors
]
});
bpmnModeler.importXML('...');
```
Prepare the project by installing all dependencies:
```sh
npm install
```
Then, depending on your use-case, you may run any of the following commands:
```sh
npm run all
npm run dev
```
MIT
Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.