Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camunda/modeler-moddle
Camunda Modeler namespace extensions for BPMN 2.0 as a moddle descriptor.
https://github.com/camunda/modeler-moddle
bpmn bpmn-js camunda-modeler moddle modeler
Last synced: about 1 month ago
JSON representation
Camunda Modeler namespace extensions for BPMN 2.0 as a moddle descriptor.
- Host: GitHub
- URL: https://github.com/camunda/modeler-moddle
- Owner: camunda
- License: mit
- Created: 2021-02-03T11:27:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T13:06:54.000Z (5 months ago)
- Last Synced: 2024-10-31T07:34:00.746Z (about 2 months ago)
- Topics: bpmn, bpmn-js, camunda-modeler, moddle, modeler
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# modeler-moddle
[![Build Status](https://github.com/camunda/modeler-moddle/workflows/CI/badge.svg)](https://github.com/camunda/modeler-moddle/actions?query=workflow%3ACI)
This project defines the [Camunda Modeler](https://github.com/camunda/camunda-modeler) namespace extensions for BPMN 2.0 as well as DMN 1.3 as [moddle](https://github.com/bpmn-io/moddle) descriptors.
## Usage
### BPMN
Use it together with [bpmn-moddle](https://github.com/bpmn-io/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
...
```
### DMN
Use it together with [dmn-moddle](https://github.com/bpmn-io/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
...
```
## Building the Project
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
```## License
Use under the terms of the [MIT license](http://opensource.org/licenses/MIT).