bpmn-moddle 0.12.3 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.travis.yml +2 -5
  2. package/lib/simple.js +3 -2
  3. package/package.json +5 -5
  4. package/resources/bpmn/json/bpmn.json +9 -7
  5. package/resources/bpmn/json/bpmndi.json +1 -1
  6. package/resources/bpmn-io/json/bioc.json +41 -0
  7. package/.npmignore +0 -6
  8. package/test/expect.js +0 -7
  9. package/test/fixtures/bpmn/activity-children.bpmn +0 -23
  10. package/test/fixtures/bpmn/callActivity-calledElement.part.bpmn +0 -7
  11. package/test/fixtures/bpmn/catch-event-dataOutputAssociations.part.bpmn +0 -5
  12. package/test/fixtures/bpmn/category.bpmn +0 -28
  13. package/test/fixtures/bpmn/complex.bpmn +0 -3680
  14. package/test/fixtures/bpmn/conversation-children.bpmn +0 -23
  15. package/test/fixtures/bpmn/data-object-reference.bpmn +0 -17
  16. package/test/fixtures/bpmn/definitions-children.bpmn +0 -13
  17. package/test/fixtures/bpmn/di/bpmnDiagram-extension.part.bpmn +0 -17
  18. package/test/fixtures/bpmn/di/bpmnDiagram.part.bpmn +0 -12
  19. package/test/fixtures/bpmn/di/bpmnEdge-waypoint.part.bpmn +0 -4
  20. package/test/fixtures/bpmn/di/bpmnEdge.part.bpmn +0 -5
  21. package/test/fixtures/bpmn/di/bpmnShape.part.bpmn +0 -4
  22. package/test/fixtures/bpmn/di-extension.bpmn +0 -26
  23. package/test/fixtures/bpmn/documentation-extension-elements.bpmn +0 -15
  24. package/test/fixtures/bpmn/documentation.bpmn +0 -11
  25. package/test/fixtures/bpmn/empty-definitions-default-ns.bpmn +0 -4
  26. package/test/fixtures/bpmn/empty-definitions.bpmn +0 -5
  27. package/test/fixtures/bpmn/error/binary.png +0 -0
  28. package/test/fixtures/bpmn/error/categoryValue.bpmn +0 -27
  29. package/test/fixtures/bpmn/error/di-no-bpmn-element.bpmn +0 -13
  30. package/test/fixtures/bpmn/error/duplicate-ids.bpmn +0 -8
  31. package/test/fixtures/bpmn/error/extension-definition-missing.bpmn +0 -6
  32. package/test/fixtures/bpmn/error/no-xml.txt +0 -1
  33. package/test/fixtures/bpmn/error/undeclared-ns-child.bpmn +0 -6
  34. package/test/fixtures/bpmn/error/unrecognized-child.bpmn +0 -6
  35. package/test/fixtures/bpmn/escalation-error.bpmn +0 -6
  36. package/test/fixtures/bpmn/event-references.part.bpmn +0 -6
  37. package/test/fixtures/bpmn/extension/camunda/inputOutput-list.part.bpmn +0 -9
  38. package/test/fixtures/bpmn/extension/camunda/inputOutput-map.part.bpmn +0 -12
  39. package/test/fixtures/bpmn/extension/camunda/inputOutput-mixed.part.bpmn +0 -13
  40. package/test/fixtures/bpmn/extension/camunda/inputOutput-plain.part.bpmn +0 -3
  41. package/test/fixtures/bpmn/extension/camunda/inputOutput-script.part.bpmn +0 -9
  42. package/test/fixtures/bpmn/extension/camunda/inputOutput.bpmn +0 -22
  43. package/test/fixtures/bpmn/extension/drools.part.bpmn +0 -9
  44. package/test/fixtures/bpmn/extension-attributes.bpmn +0 -20
  45. package/test/fixtures/bpmn/extension-elements.bpmn +0 -9
  46. package/test/fixtures/bpmn/inputOutputSpecification-children.bpmn +0 -19
  47. package/test/fixtures/bpmn/interface-implementationRef.part.bpmn +0 -2
  48. package/test/fixtures/bpmn/itemDefinition-structureRef.part.bpmn +0 -2
  49. package/test/fixtures/bpmn/lane-childLaneSets.part.bpmn +0 -8
  50. package/test/fixtures/bpmn/lane-children.bpmn +0 -46
  51. package/test/fixtures/bpmn/multiInstanceLoopCharacteristics-completionCondition.part.bpmn +0 -5
  52. package/test/fixtures/bpmn/multiInstanceLoopCharacteristics.bpmn +0 -181
  53. package/test/fixtures/bpmn/operation-implementationRef.part.bpmn +0 -2
  54. package/test/fixtures/bpmn/operation-messageRef.bpmn +0 -12
  55. package/test/fixtures/bpmn/participant-interfaceRef.bpmn +0 -20
  56. package/test/fixtures/bpmn/potentialOwner.bpmn +0 -11
  57. package/test/fixtures/bpmn/process-children.bpmn +0 -24
  58. package/test/fixtures/bpmn/scriptTask-script.part.bpmn +0 -4
  59. package/test/fixtures/bpmn/sequenceFlow-conditionExpression.part.bpmn +0 -5
  60. package/test/fixtures/bpmn/simple-default-ns.bpmn +0 -31
  61. package/test/fixtures/bpmn/simple.bpmn +0 -31
  62. package/test/fixtures/bpmn/sub-process-flow-nodes.part.bpmn +0 -8
  63. package/test/fixtures/bpmn/sub-process.part.bpmn +0 -10
  64. package/test/fixtures/bpmn/subprocess-flow-nodes-outgoing.part.bpmn +0 -16
  65. package/test/fixtures/bpmn/throw-event-dataInputAssociations.part.bpmn +0 -5
  66. package/test/fixtures/bpmn/timerEventDefinition.part.bpmn +0 -5
  67. package/test/fixtures/bpmn/vendor/signavio-complex-no-extensions.bpmn +0 -2151
  68. package/test/fixtures/bpmn/vendor/yaoqiang-event-definitions.bpmn +0 -396
  69. package/test/fixtures/bpmn/vendor.xsd +0 -14
  70. package/test/fixtures/bpmn/xsi-type.bpmn +0 -61
  71. package/test/fixtures/json/model/camunda.json +0 -224
  72. package/test/fixtures/json/model/drools.json +0 -24
  73. package/test/fixtures/xsd/BPMN20.xsd +0 -39
  74. package/test/fixtures/xsd/Vendor.xsd +0 -14
  75. package/test/helper.js +0 -23
  76. package/test/integration/camunda/read.js +0 -203
  77. package/test/integration/camunda/roundtrip.js +0 -48
  78. package/test/integration/camunda/write.js +0 -249
  79. package/test/integration/misc.js +0 -107
  80. package/test/matchers.js +0 -19
  81. package/test/spec/adapter/cmof/builder.js +0 -194
  82. package/test/spec/adapter/cmof/generate-simple.js +0 -548
  83. package/test/spec/bpmn-moddle.js +0 -208
  84. package/test/spec/xml/edit.js +0 -76
  85. package/test/spec/xml/read.js +0 -986
  86. package/test/spec/xml/roundtrip.js +0 -497
  87. package/test/spec/xml/write.js +0 -927
  88. package/test/xml-helper.js +0 -39
package/.travis.yml CHANGED
@@ -1,8 +1,5 @@
1
1
  language: node_js
2
- node_js: '0.10'
2
+ node_js: 'node'
3
3
 
4
4
  script:
5
- - grunt
6
-
7
- before_install:
8
- - npm install -g grunt-cli
5
+ - npm run all
package/lib/simple.js CHANGED
@@ -8,9 +8,10 @@ var packages = {
8
8
  bpmn: require('../resources/bpmn/json/bpmn.json'),
9
9
  bpmndi: require('../resources/bpmn/json/bpmndi.json'),
10
10
  dc: require('../resources/bpmn/json/dc.json'),
11
- di: require('../resources/bpmn/json/di.json')
11
+ di: require('../resources/bpmn/json/di.json'),
12
+ bioc: require('../resources/bpmn-io/json/bioc.json')
12
13
  };
13
14
 
14
15
  module.exports = function(additionalPackages, options) {
15
16
  return new BpmnModdle(assign({}, packages, additionalPackages), options);
16
- };
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-moddle",
3
- "version": "0.12.3",
3
+ "version": "0.14.1",
4
4
  "description": "A moddle wrapper for BPMN 2.0",
5
5
  "scripts": {
6
6
  "all": "grunt",
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
32
  "chai": "^1.9.1",
33
- "cmof-parser": "^0.1.0",
33
+ "cmof-parser": "^0.2.0",
34
34
  "grunt": "^0.4.2",
35
35
  "grunt-cli": "^0.1.13",
36
36
  "grunt-contrib-jshint": "^0.7.2",
@@ -40,11 +40,11 @@
40
40
  "jsondiffpatch": "^0.1.4",
41
41
  "load-grunt-tasks": "^0.3.0",
42
42
  "mocha": "^3.1.2",
43
- "xsd-schema-validator": "^0.3.0"
43
+ "xsd-schema-validator": "^0.5.0"
44
44
  },
45
45
  "dependencies": {
46
46
  "lodash": "^3.0.0",
47
- "moddle": "^0.8.0",
48
- "moddle-xml": "^0.12.0"
47
+ "moddle": "^1.0.0",
48
+ "moddle-xml": "^1.1.1"
49
49
  }
50
50
  }
@@ -1521,7 +1521,14 @@
1521
1521
  "superClass": [
1522
1522
  "BaseElement"
1523
1523
  ],
1524
- "isAbstract": true
1524
+ "isAbstract": false,
1525
+ "properties": [
1526
+ {
1527
+ "name": "body",
1528
+ "type": "String",
1529
+ "isBody": true
1530
+ }
1531
+ ]
1525
1532
  },
1526
1533
  {
1527
1534
  "name": "FormalExpression",
@@ -1534,11 +1541,6 @@
1534
1541
  "isAttr": true,
1535
1542
  "type": "String"
1536
1543
  },
1537
- {
1538
- "name": "body",
1539
- "type": "String",
1540
- "isBody": true
1541
- },
1542
1544
  {
1543
1545
  "name": "evaluatesToTypeRef",
1544
1546
  "type": "ItemDefinition",
@@ -2812,7 +2814,7 @@
2812
2814
  ]
2813
2815
  }
2814
2816
  ],
2815
- "emumerations": [
2817
+ "enumerations": [
2816
2818
  {
2817
2819
  "name": "ProcessType",
2818
2820
  "literalValues": [
@@ -152,7 +152,7 @@
152
152
  ]
153
153
  }
154
154
  ],
155
- "emumerations": [
155
+ "enumerations": [
156
156
  {
157
157
  "name": "ParticipantBandKind",
158
158
  "literalValues": [
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "bpmn.io colors for BPMN",
3
+ "uri": "http://bpmn.io/schema/bpmn/biocolor/1.0",
4
+ "prefix": "bioc",
5
+ "types": [
6
+ {
7
+ "name": "ColoredShape",
8
+ "extends": [ "bpmndi:BPMNShape" ],
9
+ "properties": [
10
+ {
11
+ "name": "stroke",
12
+ "isAttr": true,
13
+ "type": "String"
14
+ },
15
+ {
16
+ "name": "fill",
17
+ "isAttr": true,
18
+ "type": "String"
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "name": "ColoredEdge",
24
+ "extends": [ "bpmndi:BPMNEdge" ],
25
+ "properties": [
26
+ {
27
+ "name": "stroke",
28
+ "isAttr": true,
29
+ "type": "String"
30
+ },
31
+ {
32
+ "name": "fill",
33
+ "isAttr": true,
34
+ "type": "String"
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "enumerations": [],
40
+ "associations": []
41
+ }
package/.npmignore DELETED
@@ -1,6 +0,0 @@
1
- node_modules/
2
- tmp/
3
- docs/api/
4
- dist/
5
- .idea
6
- *.iml
package/test/expect.js DELETED
@@ -1,7 +0,0 @@
1
- var chai = require('chai');
2
-
3
- // add matchers
4
- chai.use(require('./matchers'));
5
-
6
- // expose expect as global
7
- global.expect = chai.expect;
@@ -1,23 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:vendor="http://vendor" id="activity-children" targetNamespace="http://bpmn.io/schema/bpmn">
3
- <process id="Process_1">
4
- <dataObjectReference id="DataObjectReference_1" />
5
- <userTask id="Task_1" name="Task 1">
6
- <ioSpecification id="InputOutputSpecification_1">
7
- <dataOutput id="DataOutput_1"></dataOutput>
8
- <inputSet id="InputSet_1" name="default input set">
9
- <outputSetRefs>OutputSet_1</outputSetRefs>
10
- </inputSet>
11
- <outputSet id="OutputSet_1" name="default output set">
12
- <dataOutputRefs>DataOutput_1</dataOutputRefs>
13
- <inputSetRefs>InputSet_1</inputSetRefs>
14
- </outputSet>
15
- </ioSpecification>
16
- <dataOutputAssociation>
17
- <sourceRef>DataOutput_1</sourceRef>
18
- <targetRef>DataObjectReference_1</targetRef>
19
- </dataOutputAssociation>
20
- <potentialOwner id="ResourceRole_1"></potentialOwner>
21
- </userTask>
22
- </process>
23
- </definitions>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <bpmn2:callActivity
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
5
- id="CallActivity_1" calledElement="otherProcess">
6
-
7
- </bpmn2:callActivity>
@@ -1,5 +0,0 @@
1
- <bpmn:startEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
- xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
3
- id="StartEvent_1">
4
- <bpmn:dataOutputAssociation id="DataOutputAssociation_1"></bpmn:dataOutputAssociation>
5
- </bpmn:startEvent>
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:signavio="http://www.signavio.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Signavio Process Editor, http://www.signavio.com" exporterVersion="8.4.1" expressionLanguage="http://www.w3.org/1999/XPath" id="sid-73c85f47-caf7-49f4-81c2-ccd9c46beedb" targetNamespace="http://www.signavio.com/bpmn20" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
2
- <category id="sid-ccc7e63e-916e-4bd0-a9f0-98cbff749195">
3
- <categoryValue id="sid-afd7e63e-916e-4bd0-a9f0-98cbff749193" value="group with label"/>
4
- </category>
5
- <process id="sid-d21bd22a-e617-4562-9cbd-2546073c1cf1" isExecutable="false" processType="None">
6
- <extensionElements>
7
- <signavio:signavioDiagramMetaData metaKey="revisionid" metaValue="a97a57cd8c4145d09f902344a2f6eec7"/>
8
- </extensionElements>
9
- <group categoryValueRef="sid-afd7e63e-916e-4bd0-a9f0-98cbff749193" id="sid-1FB8E9C5-D54C-4FCA-A2B2-256090EC79DF">
10
- <extensionElements>
11
- <signavio:signavioMetaData metaKey="userstory" metaValue=""/>
12
- </extensionElements>
13
- </group>
14
- </process>
15
- <bpmndi:BPMNDiagram id="sid-73344385-3bbb-419c-ad69-a9db64e271c7">
16
- <bpmndi:BPMNPlane bpmnElement="sid-d21bd22a-e617-4562-9cbd-2546073c1cf1" id="sid-def820ae-1226-4abe-9eb0-7b5543824627">
17
- <bpmndi:BPMNShape bpmnElement="sid-1FB8E9C5-D54C-4FCA-A2B2-256090EC79DF" id="sid-1FB8E9C5-D54C-4FCA-A2B2-256090EC79DF_gui">
18
- <omgdc:Bounds height="234.0" width="346.0" x="180.0" y="135.0"/>
19
- <bpmndi:BPMNLabel labelStyle="sid-41bec41f-8420-426c-bf18-f704a8dd71d2">
20
- <omgdc:Bounds height="12.0" width="96.0" x="184.0" y="137.0"/>
21
- </bpmndi:BPMNLabel>
22
- </bpmndi:BPMNShape>
23
- </bpmndi:BPMNPlane>
24
- <bpmndi:BPMNLabelStyle id="sid-41bec41f-8420-426c-bf18-f704a8dd71d2">
25
- <omgdc:Font isBold="false" isItalic="false" isStrikeThrough="false" isUnderline="false" name="Arial" size="11.0"/>
26
- </bpmndi:BPMNLabelStyle>
27
- </bpmndi:BPMNDiagram>
28
- </definitions>