kunpeng-bpmn-moddle

1.1.0 • Public • Published

kunpeng-bpmn-moddle

CI

This project defines the Kunpeng namespace extensions for BPMN 2.0 as a moddle descriptor.

Usage

Use it together with bpmn-moddle to validate Kunpeng BPMN 2.0 extensions.

const BpmnModdle = require('bpmn-moddle');

const kunpengModdle = require('kunpeng-bpmn-moddle/resources/kunpeng.json');

const moddle = new BpmnModdle({ kunpeng: kunpengModdle });

const taskDefinition = moddle.create('kunpeng:TaskDefinition', {
  type: 'payment-service',
  retries: '5'
});

const serviceTask = moddle.create('bpmn:ServiceTask', {
  extensionElements: [ taskDefinition ]
});

Building the Project

Execute the test via

npm test

Perform a complete build of the application via

npm run all

Behaviors

Inside a bpmn-js editor pair this extension with camunda-bpmn-js-behaviors to ensure Camunda properties are created, updated and deleted as expected.

License

Use under the terms of the MIT license.

Package Sidebar

Install

npm i kunpeng-bpmn-moddle

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

12.9 kB

Total Files

4

Last publish

Collaborators

  • zxuanhong