Camunda Modeler moddle extensions
npm install modeler-moddle
This project defines the Camunda Modeler namespace extensions for BPMN 2.0 as well as DMN 1.3 as moddle descriptors.
Use it together with bpmn-moddle to validate Camunda Modeler BPMN 2.0 extensions.
``javascript
var BpmnModdle = require('bpmn-moddle');
var modelerModdle = require('modeler-moddle/resources/modeler');
var moddle = new BpmnModdle({ modeler: modelerModdle });
var serviceTask = moddle.create('bpmn:Definitions', {
executionPlatform: 'Camunda Platform',
executionPlatformVersion: '7.15.0'
});
`
Once serialized, this exports the properties under the http://camunda.org/schema/modeler/1.0 namespace:
`xml
xmlns:modeler="http://camunda.org/schema/modeler/1.0"
id="Definitions_1"
modeler:executionPlatform="Camunda Platform"
modeler:executionPlatformVersion="7.15.0">
...
`
Use it together with dmn-moddle to validate Camunda Modeler DMN 1.3 extensions.
`javascript
var DmnModdle = require('dmn-moddle');
var modelerModdle = require('modeler-moddle/resources/dmn-modeler');
var moddle = new DmnModdle({ modeler: modelerModdle });
var serviceTask = moddle.create('dmn:Definitions', {
executionPlatform: 'Camunda Platform',
executionPlatformVersion: '7.15.0'
});
`
Once serialized, this exports the properties under the http://camunda.org/schema/modeler/1.0 namespace:
`xml
xmlns:modeler="http://camunda.org/schema/modeler/1.0"
id="Definitions_1"
modeler:executionPlatform="Camunda Platform"
modeler:executionPlatformVersion="7.15.0">
...
`
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
`sh`
npm test
Perform a complete build of the application via
`sh``
npm run all
Use under the terms of the MIT license.