update
This commit is contained in:
63
ebpm-process-modeler/bpmn-js/bpmn-moddle/CHANGELOG.md
Normal file
63
ebpm-process-modeler/bpmn-js/bpmn-moddle/CHANGELOG.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle) are documented here. We use [semantic versioning](http://semver.org/) for releases.
|
||||
|
||||
## Unreleased
|
||||
|
||||
___Note:__ Yet to be released changes appear here._
|
||||
|
||||
## 5.2.0
|
||||
|
||||
* `FEAT`: validate ID attributes as QNames
|
||||
|
||||
## 5.1.6
|
||||
|
||||
* `FIX`: correct `Choreography` model definitions ([#59](https://github.com/bpmn-io/bpmn-moddle/issues/59))
|
||||
|
||||
## 5.1.5
|
||||
|
||||
* `FIX`: correct `StandardLoopCharacteristics#loopMaximum` type ([#56](https://github.com/bpmn-io/bpmn-moddle/issues/56))
|
||||
|
||||
## 5.1.4
|
||||
|
||||
* `FIX`: correct extension attributes not being serialized on `bpmn:Expression` elements ([#55](https://github.com/bpmn-io/bpmn-moddle/issues/55))
|
||||
|
||||
## 5.1.3
|
||||
|
||||
* `FIX`: correct missing `resourceParameterBinding` parent
|
||||
|
||||
## 5.1.2
|
||||
|
||||
* `CHORE`: warn on unknown attribute in well-known namespace
|
||||
* `FIX`: correct missing `participantMultiplicity` parent
|
||||
|
||||
## 5.1.0
|
||||
|
||||
* `CHORE`: bump dependency versions
|
||||
|
||||
## 5.0.0
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
* `FEAT`: migrate to ES modules. Use `esm` or a ES module aware transpiler to consume this library.
|
||||
|
||||
## 4.0.0
|
||||
|
||||
* `FEAT`: encode entities in body properties (rather than using CDATA escaping)
|
||||
|
||||
## 3.0.2
|
||||
|
||||
* `FIX`: properly handle `.` in attribute names
|
||||
|
||||
## 3.0.1
|
||||
|
||||
* `FIX`: properly decode `text` entities
|
||||
|
||||
## 3.0.0
|
||||
|
||||
* `CHORE`: improve error handling on invalid attributes
|
||||
* `CHORE`: drop lodash in favor of [min-dash](https://github.com/bpmn-io/min-dash)
|
||||
|
||||
## ...
|
||||
|
||||
Check `git log` for earlier history.
|
||||
21
ebpm-process-modeler/bpmn-js/bpmn-moddle/LICENSE
Normal file
21
ebpm-process-modeler/bpmn-js/bpmn-moddle/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 camunda Services GmbH
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
75
ebpm-process-modeler/bpmn-js/bpmn-moddle/README.md
Normal file
75
ebpm-process-modeler/bpmn-js/bpmn-moddle/README.md
Normal file
@@ -0,0 +1,75 @@
|
||||
> As of version `5.0.0` this library exposes [ES modules](http://exploringjs.com/es6/ch_modules.html#sec_basics-of-es6-modules). Use [esm](https://github.com/standard-things/esm) to consume it or an ES module aware bundler such as [Webpack](https://webpack.js.org) or [Rollup](https://rollupjs.org) to bundle it for the browser.
|
||||
|
||||
|
||||
# bpmn-moddle
|
||||
|
||||
[](https://travis-ci.org/bpmn-io/bpmn-moddle)
|
||||
|
||||
Read and write BPMN 2.0 diagram files in NodeJS and the browser.
|
||||
|
||||
__bpmn-moddle__ uses the [BPMN 2.0 meta-model](http://www.omg.org/spec/BPMN/2.0/) to validate the input and produce correct BPMN 2.0 XML. The library is built on top of [moddle](https://github.com/bpmn-io/moddle) and [moddle-xml](https://github.com/bpmn-io/moddle-xml).
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
Get the library via [npm package](https://www.npmjs.org/package/bpmn-moddle). Bundle it for the web using [browserify](http://browserify.org) or [webpack](https://webpack.github.io).
|
||||
|
||||
```javascript
|
||||
import BpmnModdle from 'bpmn-moddle';
|
||||
|
||||
var moddle = new BpmnModdle();
|
||||
|
||||
var xmlStr =
|
||||
'<?xml version="1.0" encoding="UTF-8"?>' +
|
||||
'<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" ' +
|
||||
'id="empty-definitions" ' +
|
||||
'targetNamespace="http://bpmn.io/schema/bpmn">' +
|
||||
'</bpmn2:definitions>';
|
||||
|
||||
|
||||
moddle.fromXML(xmlStr, function(err, definitions) {
|
||||
|
||||
// update id attribute
|
||||
definitions.set('id', 'NEW ID');
|
||||
|
||||
// add a root element
|
||||
var bpmnProcess = moddle.create('bpmn:Process', { id: 'MyProcess_1' });
|
||||
definitions.get('rootElements').push(bpmnProcess);
|
||||
|
||||
moddle.toXML(definitions, function(err, xmlStrUpdated) {
|
||||
|
||||
// xmlStrUpdated contains new id and the added process
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## Resources
|
||||
|
||||
* [Issues](https://github.com/bpmn-io/bpmn-moddle/issues)
|
||||
* [Examples](https://github.com/bpmn-io/bpmn-moddle/tree/master/test/spec/xml)
|
||||
* [Changelog](./CHANGELOG.md)
|
||||
|
||||
|
||||
## 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
|
||||
|
||||
```
|
||||
npm test
|
||||
```
|
||||
|
||||
Perform a complete build of the application via
|
||||
|
||||
```
|
||||
npm run all
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Use under the terms of the [MIT license](http://opensource.org/licenses/MIT).
|
||||
3
ebpm-process-modeler/bpmn-js/bpmn-moddle/index.js
Normal file
3
ebpm-process-modeler/bpmn-js/bpmn-moddle/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export {
|
||||
default
|
||||
} from './lib/simple';
|
||||
86
ebpm-process-modeler/bpmn-js/bpmn-moddle/lib/bpmn-moddle.js
Normal file
86
ebpm-process-modeler/bpmn-js/bpmn-moddle/lib/bpmn-moddle.js
Normal file
@@ -0,0 +1,86 @@
|
||||
import {
|
||||
isString,
|
||||
isFunction,
|
||||
assign
|
||||
} from 'min-dash';
|
||||
|
||||
import Moddle from 'moddle';
|
||||
|
||||
import {
|
||||
Reader,
|
||||
Writer
|
||||
} from 'moddle-xml';
|
||||
|
||||
|
||||
/**
|
||||
* A sub class of {@link Moddle} with support for import and export of BPMN 2.0 xml files.
|
||||
*
|
||||
* @class BpmnModdle
|
||||
* @extends Moddle
|
||||
*
|
||||
* @param {Object|Array} packages to use for instantiating the model
|
||||
* @param {Object} [options] additional options to pass over
|
||||
*/
|
||||
export default function BpmnModdle(packages, options) {
|
||||
Moddle.call(this, packages, options);
|
||||
}
|
||||
|
||||
BpmnModdle.prototype = Object.create(Moddle.prototype);
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a BPMN model tree from a given xml string.
|
||||
*
|
||||
* @param {String} xmlStr
|
||||
* @param {String} [typeName='bpmn:Definitions'] name of the root element
|
||||
* @param {Object} [options] options to pass to the underlying reader
|
||||
* @param {Function} done callback that is invoked with (err, result, parseContext)
|
||||
* once the import completes
|
||||
*/
|
||||
BpmnModdle.prototype.fromXML = function(xmlStr, typeName, options, done) {
|
||||
|
||||
if (!isString(typeName)) {
|
||||
done = options;
|
||||
options = typeName;
|
||||
typeName = 'bpmn:Definitions';
|
||||
}
|
||||
|
||||
if (isFunction(options)) {
|
||||
done = options;
|
||||
options = {};
|
||||
}
|
||||
|
||||
var reader = new Reader(assign({ model: this, lax: true }, options));
|
||||
var rootHandler = reader.handler(typeName);
|
||||
|
||||
reader.fromXML(xmlStr, rootHandler, done);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes a BPMN 2.0 object tree to XML.
|
||||
*
|
||||
* @param {String} element the root element, typically an instance of `bpmn:Definitions`
|
||||
* @param {Object} [options] to pass to the underlying writer
|
||||
* @param {Function} done callback invoked with (err, xmlStr) once the import completes
|
||||
*/
|
||||
BpmnModdle.prototype.toXML = function(element, options, done) {
|
||||
|
||||
if (isFunction(options)) {
|
||||
done = options;
|
||||
options = {};
|
||||
}
|
||||
|
||||
var writer = new Writer(options);
|
||||
|
||||
var result;
|
||||
var err;
|
||||
|
||||
try {
|
||||
result = writer.toXML(element);
|
||||
} catch (e) {
|
||||
err = e;
|
||||
}
|
||||
|
||||
return done(err, result);
|
||||
};
|
||||
25
ebpm-process-modeler/bpmn-js/bpmn-moddle/lib/simple.js
Normal file
25
ebpm-process-modeler/bpmn-js/bpmn-moddle/lib/simple.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import {
|
||||
assign
|
||||
} from 'min-dash';
|
||||
|
||||
import BpmnModdle from './bpmn-moddle';
|
||||
|
||||
import BpmnPackage from '../resources/bpmn/json/bpmn.json';
|
||||
import BpmnDiPackage from '../resources/bpmn/json/bpmndi.json';
|
||||
import DcPackage from '../resources/bpmn/json/dc.json';
|
||||
import DiPackage from '../resources/bpmn/json/di.json';
|
||||
import BiocPackage from '../resources/bpmn-io/json/bioc.json';
|
||||
|
||||
var packages = {
|
||||
bpmn: BpmnPackage,
|
||||
bpmndi: BpmnDiPackage,
|
||||
dc: DcPackage,
|
||||
di: DiPackage,
|
||||
bioc: BiocPackage
|
||||
};
|
||||
|
||||
export default function(additionalPackages, options) {
|
||||
var pks = assign({}, packages, additionalPackages);
|
||||
|
||||
return new BpmnModdle(pks, options);
|
||||
}
|
||||
80
ebpm-process-modeler/bpmn-js/bpmn-moddle/package.json
Normal file
80
ebpm-process-modeler/bpmn-js/bpmn-moddle/package.json
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"bpmn-moddle@5.2.0",
|
||||
"D:\\dataTag\\ebpm-process-modeler\\ebpm-process-modeler"
|
||||
]
|
||||
],
|
||||
"_from": "bpmn-moddle@5.2.0",
|
||||
"_id": "bpmn-moddle@5.2.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-MZTlpIXWcHTelp09vR4hs23diCdeHl4JbwOXGmif10qf9v/kqreiCMeo0B9w8eEmZqdRdkulTIScKavTYOxTQw==",
|
||||
"_location": "/bpmn-moddle",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "bpmn-moddle@5.2.0",
|
||||
"name": "bpmn-moddle",
|
||||
"escapedName": "bpmn-moddle",
|
||||
"rawSpec": "5.2.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "5.2.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/bpmn-js"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/bpmn-moddle/-/bpmn-moddle-5.2.0.tgz",
|
||||
"_spec": "5.2.0",
|
||||
"_where": "D:\\dataTag\\ebpm-process-modeler\\ebpm-process-modeler",
|
||||
"author": {
|
||||
"name": "Nico Rehwaldt",
|
||||
"url": "https://github.com/nikku"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/bpmn-io/bpmn-moddle/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "bpmn.io contributors",
|
||||
"url": "https://github.com/bpmn-io"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"min-dash": "^3.0.0",
|
||||
"moddle": "^4.1.0",
|
||||
"moddle-xml": "^7.5.0"
|
||||
},
|
||||
"description": "A moddle wrapper for BPMN 2.0",
|
||||
"devDependencies": {
|
||||
"chai": "^4.1.2",
|
||||
"cmof-parser": "^0.2.0",
|
||||
"eslint": "^4.11.0",
|
||||
"eslint-plugin-bpmn-io": "^0.4.1",
|
||||
"esm": "^3.0.15",
|
||||
"mocha": "^4.0.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"xsd-schema-validator": "^0.5.0"
|
||||
},
|
||||
"homepage": "https://github.com/bpmn-io/bpmn-moddle#readme",
|
||||
"keywords": [
|
||||
"bpmn",
|
||||
"moddle",
|
||||
"bpmn20",
|
||||
"meta-model"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "bpmn-moddle",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/bpmn-io/bpmn-moddle.git"
|
||||
},
|
||||
"scripts": {
|
||||
"all": "run-s lint test",
|
||||
"dev": "npm test -- --watch",
|
||||
"lint": "eslint .",
|
||||
"test": "mocha -r esm --reporter=spec --recursive test"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "5.2.0"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "bpmn.io colors for BPMN",
|
||||
"uri": "http://bpmn.io/schema/bpmn/biocolor/1.0",
|
||||
"prefix": "bioc",
|
||||
"types": [
|
||||
{
|
||||
"name": "ColoredShape",
|
||||
"extends": [ "bpmndi:BPMNShape" ],
|
||||
"properties": [
|
||||
{
|
||||
"name": "stroke",
|
||||
"isAttr": true,
|
||||
"type": "String"
|
||||
},
|
||||
{
|
||||
"name": "fill",
|
||||
"isAttr": true,
|
||||
"type": "String"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ColoredEdge",
|
||||
"extends": [ "bpmndi:BPMNEdge" ],
|
||||
"properties": [
|
||||
{
|
||||
"name": "stroke",
|
||||
"isAttr": true,
|
||||
"type": "String"
|
||||
},
|
||||
{
|
||||
"name": "fill",
|
||||
"isAttr": true,
|
||||
"type": "String"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"enumerations": [],
|
||||
"associations": []
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,193 @@
|
||||
{
|
||||
"name": "BPMNDI",
|
||||
"uri": "http://www.omg.org/spec/BPMN/20100524/DI",
|
||||
"types": [
|
||||
{
|
||||
"name": "BPMNDiagram",
|
||||
"properties": [
|
||||
{
|
||||
"name": "plane",
|
||||
"type": "BPMNPlane",
|
||||
"redefines": "di:Diagram#rootElement"
|
||||
},
|
||||
{
|
||||
"name": "labelStyle",
|
||||
"type": "BPMNLabelStyle",
|
||||
"isMany": true
|
||||
}
|
||||
],
|
||||
"superClass": [
|
||||
"di:Diagram"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BPMNPlane",
|
||||
"properties": [
|
||||
{
|
||||
"name": "bpmnElement",
|
||||
"isAttr": true,
|
||||
"isReference": true,
|
||||
"type": "bpmn:BaseElement",
|
||||
"redefines": "di:DiagramElement#modelElement"
|
||||
}
|
||||
],
|
||||
"superClass": [
|
||||
"di:Plane"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BPMNShape",
|
||||
"properties": [
|
||||
{
|
||||
"name": "bpmnElement",
|
||||
"isAttr": true,
|
||||
"isReference": true,
|
||||
"type": "bpmn:BaseElement",
|
||||
"redefines": "di:DiagramElement#modelElement"
|
||||
},
|
||||
{
|
||||
"name": "isHorizontal",
|
||||
"isAttr": true,
|
||||
"type": "Boolean"
|
||||
},
|
||||
{
|
||||
"name": "isExpanded",
|
||||
"isAttr": true,
|
||||
"type": "Boolean"
|
||||
},
|
||||
{
|
||||
"name": "isMarkerVisible",
|
||||
"isAttr": true,
|
||||
"type": "Boolean"
|
||||
},
|
||||
{
|
||||
"name": "label",
|
||||
"type": "BPMNLabel"
|
||||
},
|
||||
{
|
||||
"name": "isMessageVisible",
|
||||
"isAttr": true,
|
||||
"type": "Boolean"
|
||||
},
|
||||
{
|
||||
"name": "participantBandKind",
|
||||
"type": "ParticipantBandKind",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "choreographyActivityShape",
|
||||
"type": "BPMNShape",
|
||||
"isAttr": true,
|
||||
"isReference": true
|
||||
}
|
||||
],
|
||||
"superClass": [
|
||||
"di:LabeledShape"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BPMNEdge",
|
||||
"properties": [
|
||||
{
|
||||
"name": "label",
|
||||
"type": "BPMNLabel"
|
||||
},
|
||||
{
|
||||
"name": "bpmnElement",
|
||||
"isAttr": true,
|
||||
"isReference": true,
|
||||
"type": "bpmn:BaseElement",
|
||||
"redefines": "di:DiagramElement#modelElement"
|
||||
},
|
||||
{
|
||||
"name": "sourceElement",
|
||||
"isAttr": true,
|
||||
"isReference": true,
|
||||
"type": "di:DiagramElement",
|
||||
"redefines": "di:Edge#source"
|
||||
},
|
||||
{
|
||||
"name": "targetElement",
|
||||
"isAttr": true,
|
||||
"isReference": true,
|
||||
"type": "di:DiagramElement",
|
||||
"redefines": "di:Edge#target"
|
||||
},
|
||||
{
|
||||
"name": "messageVisibleKind",
|
||||
"type": "MessageVisibleKind",
|
||||
"isAttr": true,
|
||||
"default": "initiating"
|
||||
}
|
||||
],
|
||||
"superClass": [
|
||||
"di:LabeledEdge"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BPMNLabel",
|
||||
"properties": [
|
||||
{
|
||||
"name": "labelStyle",
|
||||
"type": "BPMNLabelStyle",
|
||||
"isAttr": true,
|
||||
"isReference": true,
|
||||
"redefines": "di:DiagramElement#style"
|
||||
}
|
||||
],
|
||||
"superClass": [
|
||||
"di:Label"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BPMNLabelStyle",
|
||||
"properties": [
|
||||
{
|
||||
"name": "font",
|
||||
"type": "dc:Font"
|
||||
}
|
||||
],
|
||||
"superClass": [
|
||||
"di:Style"
|
||||
]
|
||||
}
|
||||
],
|
||||
"enumerations": [
|
||||
{
|
||||
"name": "ParticipantBandKind",
|
||||
"literalValues": [
|
||||
{
|
||||
"name": "top_initiating"
|
||||
},
|
||||
{
|
||||
"name": "middle_initiating"
|
||||
},
|
||||
{
|
||||
"name": "bottom_initiating"
|
||||
},
|
||||
{
|
||||
"name": "top_non_initiating"
|
||||
},
|
||||
{
|
||||
"name": "middle_non_initiating"
|
||||
},
|
||||
{
|
||||
"name": "bottom_non_initiating"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MessageVisibleKind",
|
||||
"literalValues": [
|
||||
{
|
||||
"name": "initiating"
|
||||
},
|
||||
{
|
||||
"name": "non_initiating"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"associations": [],
|
||||
"prefix": "bpmndi"
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"name": "DC",
|
||||
"uri": "http://www.omg.org/spec/DD/20100524/DC",
|
||||
"types": [
|
||||
{
|
||||
"name": "Boolean"
|
||||
},
|
||||
{
|
||||
"name": "Integer"
|
||||
},
|
||||
{
|
||||
"name": "Real"
|
||||
},
|
||||
{
|
||||
"name": "String"
|
||||
},
|
||||
{
|
||||
"name": "Font",
|
||||
"properties": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "String",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "size",
|
||||
"type": "Real",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "isBold",
|
||||
"type": "Boolean",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "isItalic",
|
||||
"type": "Boolean",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "isUnderline",
|
||||
"type": "Boolean",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "isStrikeThrough",
|
||||
"type": "Boolean",
|
||||
"isAttr": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Point",
|
||||
"properties": [
|
||||
{
|
||||
"name": "x",
|
||||
"type": "Real",
|
||||
"default": "0",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "Real",
|
||||
"default": "0",
|
||||
"isAttr": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Bounds",
|
||||
"properties": [
|
||||
{
|
||||
"name": "x",
|
||||
"type": "Real",
|
||||
"default": "0",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "Real",
|
||||
"default": "0",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "width",
|
||||
"type": "Real",
|
||||
"isAttr": true
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"type": "Real",
|
||||
"isAttr": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"prefix": "dc",
|
||||
"associations": []
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
{
|
||||
"name": "DI",
|
||||
"uri": "http://www.omg.org/spec/DD/20100524/DI",
|
||||
"types": [
|
||||
{
|
||||
"name": "DiagramElement",
|
||||
"isAbstract": true,
|
||||
"properties": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "String",
|
||||
"isAttr": true,
|
||||
"isId": true
|
||||
},
|
||||
{
|
||||
"name": "extension",
|
||||
"type": "Extension"
|
||||
},
|
||||
{
|
||||
"name": "owningDiagram",
|
||||
"type": "Diagram",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isReference": true
|
||||
},
|
||||
{
|
||||
"name": "owningElement",
|
||||
"type": "DiagramElement",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isReference": true
|
||||
},
|
||||
{
|
||||
"name": "modelElement",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isReference": true,
|
||||
"type": "Element"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"type": "Style",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isReference": true
|
||||
},
|
||||
{
|
||||
"name": "ownedElement",
|
||||
"type": "DiagramElement",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isMany": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Node",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"DiagramElement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Edge",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"DiagramElement"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "source",
|
||||
"type": "DiagramElement",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isReference": true
|
||||
},
|
||||
{
|
||||
"name": "target",
|
||||
"type": "DiagramElement",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isReference": true
|
||||
},
|
||||
{
|
||||
"name": "waypoint",
|
||||
"isUnique": false,
|
||||
"isMany": true,
|
||||
"type": "dc:Point",
|
||||
"xml": {
|
||||
"serialize": "xsi:type"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Diagram",
|
||||
"isAbstract": true,
|
||||
"properties": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "String",
|
||||
"isAttr": true,
|
||||
"isId": true
|
||||
},
|
||||
{
|
||||
"name": "rootElement",
|
||||
"type": "DiagramElement",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"isAttr": true,
|
||||
"type": "String"
|
||||
},
|
||||
{
|
||||
"name": "documentation",
|
||||
"isAttr": true,
|
||||
"type": "String"
|
||||
},
|
||||
{
|
||||
"name": "resolution",
|
||||
"isAttr": true,
|
||||
"type": "Real"
|
||||
},
|
||||
{
|
||||
"name": "ownedStyle",
|
||||
"type": "Style",
|
||||
"isReadOnly": true,
|
||||
"isVirtual": true,
|
||||
"isMany": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Shape",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"Node"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "bounds",
|
||||
"type": "dc:Bounds"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Plane",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"Node"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "planeElement",
|
||||
"type": "DiagramElement",
|
||||
"subsettedProperty": "DiagramElement-ownedElement",
|
||||
"isMany": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LabeledEdge",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"Edge"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "ownedLabel",
|
||||
"type": "Label",
|
||||
"isReadOnly": true,
|
||||
"subsettedProperty": "DiagramElement-ownedElement",
|
||||
"isVirtual": true,
|
||||
"isMany": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LabeledShape",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"Shape"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "ownedLabel",
|
||||
"type": "Label",
|
||||
"isReadOnly": true,
|
||||
"subsettedProperty": "DiagramElement-ownedElement",
|
||||
"isVirtual": true,
|
||||
"isMany": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"isAbstract": true,
|
||||
"superClass": [
|
||||
"Node"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "bounds",
|
||||
"type": "dc:Bounds"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Style",
|
||||
"isAbstract": true,
|
||||
"properties": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "String",
|
||||
"isAttr": true,
|
||||
"isId": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Extension",
|
||||
"properties": [
|
||||
{
|
||||
"name": "values",
|
||||
"type": "Element",
|
||||
"isMany": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"associations": [],
|
||||
"prefix": "di",
|
||||
"xml": {
|
||||
"tagAlias": "lowerCase"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
|
||||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
||||
targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL">
|
||||
|
||||
<xsd:import namespace="http://www.omg.org/spec/BPMN/20100524/DI" schemaLocation="BPMNDI.xsd"/>
|
||||
<xsd:include schemaLocation="Semantic.xsd"/>
|
||||
|
||||
<xsd:element name="definitions" type="tDefinitions"/>
|
||||
<xsd:complexType name="tDefinitions">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="import" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element ref="extension" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element ref="rootElement" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element ref="bpmndi:BPMNDiagram" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element ref="relationship" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="id" type="xsd:ID" use="optional"/>
|
||||
<xsd:attribute name="name" type="xsd:string"/>
|
||||
<xsd:attribute name="targetNamespace" type="xsd:anyURI" use="required"/>
|
||||
<xsd:attribute name="expressionLanguage" type="xsd:anyURI" use="optional" default="http://www.w3.org/1999/XPath"/>
|
||||
<xsd:attribute name="typeLanguage" type="xsd:anyURI" use="optional" default="http://www.w3.org/2001/XMLSchema"/>
|
||||
<xsd:attribute name="exporter" type="xsd:string"/>
|
||||
<xsd:attribute name="exporterVersion" type="xsd:string"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:element name="import" type="tImport"/>
|
||||
<xsd:complexType name="tImport">
|
||||
<xsd:attribute name="namespace" type="xsd:anyURI" use="required"/>
|
||||
<xsd:attribute name="location" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="importType" type="xsd:anyURI" use="required"/>
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" targetNamespace="http://www.omg.org/spec/BPMN/20100524/DI" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
|
||||
<xsd:import namespace="http://www.omg.org/spec/DD/20100524/DC" schemaLocation="DC.xsd" />
|
||||
<xsd:import namespace="http://www.omg.org/spec/DD/20100524/DI" schemaLocation="DI.xsd" />
|
||||
|
||||
<xsd:element name="BPMNDiagram" type="bpmndi:BPMNDiagram" />
|
||||
<xsd:element name="BPMNPlane" type="bpmndi:BPMNPlane" />
|
||||
<xsd:element name="BPMNLabelStyle" type="bpmndi:BPMNLabelStyle" />
|
||||
<xsd:element name="BPMNShape" type="bpmndi:BPMNShape" substitutionGroup="di:DiagramElement" />
|
||||
<xsd:element name="BPMNLabel" type="bpmndi:BPMNLabel" />
|
||||
<xsd:element name="BPMNEdge" type="bpmndi:BPMNEdge" substitutionGroup="di:DiagramElement" />
|
||||
|
||||
<xsd:complexType name="BPMNDiagram">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Diagram">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="bpmndi:BPMNPlane" />
|
||||
<xsd:element ref="bpmndi:BPMNLabelStyle" maxOccurs="unbounded" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="BPMNPlane">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Plane">
|
||||
<xsd:attribute name="bpmnElement" type="xsd:QName" />
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="BPMNEdge">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:LabeledEdge">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="bpmndi:BPMNLabel" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="bpmnElement" type="xsd:QName" />
|
||||
<xsd:attribute name="sourceElement" type="xsd:QName" />
|
||||
<xsd:attribute name="targetElement" type="xsd:QName" />
|
||||
<xsd:attribute name="messageVisibleKind" type="bpmndi:MessageVisibleKind" />
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="BPMNShape">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:LabeledShape">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="bpmndi:BPMNLabel" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="bpmnElement" type="xsd:QName" />
|
||||
<xsd:attribute name="isHorizontal" type="xsd:boolean" />
|
||||
<xsd:attribute name="isExpanded" type="xsd:boolean" />
|
||||
<xsd:attribute name="isMarkerVisible" type="xsd:boolean" />
|
||||
<xsd:attribute name="isMessageVisible" type="xsd:boolean" />
|
||||
<xsd:attribute name="participantBandKind" type="bpmndi:ParticipantBandKind" />
|
||||
<xsd:attribute name="choreographyActivityShape" type="xsd:QName"/>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="BPMNLabel">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Label">
|
||||
<xsd:attribute name="labelStyle" type="xsd:QName" />
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="BPMNLabelStyle">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Style">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="dc:Font" />
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="ParticipantBandKind">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="top_initiating" />
|
||||
<xsd:enumeration value="middle_initiating" />
|
||||
<xsd:enumeration value="bottom_initiating" />
|
||||
<xsd:enumeration value="top_non_initiating" />
|
||||
<xsd:enumeration value="middle_non_initiating" />
|
||||
<xsd:enumeration value="bottom_non_initiating" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="MessageVisibleKind">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="initiating" />
|
||||
<xsd:enumeration value="non_initiating" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
</xsd:schema>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://www.omg.org/spec/DD/20100524/DC" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
|
||||
<xsd:element name="Font" type="dc:Font" />
|
||||
<xsd:element name="Point" type="dc:Point" />
|
||||
<xsd:element name="Bounds" type="dc:Bounds" />
|
||||
|
||||
<xsd:complexType name="Font">
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="size" type="xsd:double" />
|
||||
<xsd:attribute name="isBold" type="xsd:boolean" />
|
||||
<xsd:attribute name="isItalic" type="xsd:boolean" />
|
||||
<xsd:attribute name="isUnderline" type="xsd:boolean" />
|
||||
<xsd:attribute name="isStrikeThrough" type="xsd:boolean" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="Point">
|
||||
<xsd:attribute name="x" type="xsd:double" use="required" />
|
||||
<xsd:attribute name="y" type="xsd:double" use="required" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="Bounds">
|
||||
<xsd:attribute name="x" type="xsd:double" use="required" />
|
||||
<xsd:attribute name="y" type="xsd:double" use="required" />
|
||||
<xsd:attribute name="width" type="xsd:double" use="required" />
|
||||
<xsd:attribute name="height" type="xsd:double" use="required" />
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" targetNamespace="http://www.omg.org/spec/DD/20100524/DI" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
|
||||
<xsd:import namespace="http://www.omg.org/spec/DD/20100524/DC" schemaLocation="DC.xsd" />
|
||||
|
||||
<xsd:element name="DiagramElement" type="di:DiagramElement" />
|
||||
<xsd:element name="Diagram" type="di:Diagram" />
|
||||
<xsd:element name="Style" type="di:Style" />
|
||||
<xsd:element name="Node" type="di:Node" />
|
||||
<xsd:element name="Edge" type="di:Edge" />
|
||||
<xsd:element name="Shape" type="di:Shape" />
|
||||
<xsd:element name="Plane" type="di:Plane" />
|
||||
<xsd:element name="LabeledEdge" type="di:LabeledEdge" />
|
||||
<xsd:element name="Label" type="di:Label" />
|
||||
<xsd:element name="LabeledShape" type="di:LabeledShape" />
|
||||
|
||||
<xsd:complexType abstract="true" name="DiagramElement">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="extension" minOccurs="0">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="id" type="xsd:ID" />
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Diagram">
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="documentation" type="xsd:string" />
|
||||
<xsd:attribute name="resolution" type="xsd:double" />
|
||||
<xsd:attribute name="id" type="xsd:ID" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Node">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:DiagramElement" />
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Edge">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:DiagramElement">
|
||||
<xsd:sequence>
|
||||
<xsd:element maxOccurs="unbounded" minOccurs="2" name="waypoint" type="dc:Point" />
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="LabeledEdge">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Edge" />
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Shape">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Node">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="dc:Bounds" />
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="LabeledShape">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Shape" />
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Label">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Node">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="dc:Bounds" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Plane">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="di:Node">
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="di:DiagramElement" maxOccurs="unbounded" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType abstract="true" name="Style">
|
||||
<xsd:attribute name="id" type="xsd:ID" />
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user