This project defines the Camunda namespace extensions for BPMN 2.0 as a moddle descriptor.
Use it together with bpmn-moddle to validate Camunda BPMN 2.0 extensions.
import BpmnModdle from 'bpmn-moddle';
import camundaModdle from 'camunda-bpmn-moddle/resources/camunda.json';
const moddle = new BpmnModdle({ camunda: camundaModdle });
const serviceTask = moddle.create('bpmn:ServiceTask', {
'javaDelegate': 'my.company.SomeDelegate'
});
To run the test suite that includes XSD schema validation you must have a Java JDK installed and properly exposed through the JAVA_HOME
variable.
Execute the test via
npm test
Perform a complete build of the application via
npm run all
Inside a bpmn-js editor pair this extension with camunda-bpmn-js-behaviors to ensure Camunda properties are created, updated and deleted as expected.
Use under the terms of the MIT license.