bpmn-moddle
Advanced tools
Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "bpmn-moddle", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "A moddle wrapper for BPMN 2.0", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -600,3 +600,3 @@ { | ||
{ | ||
"name": "dataInputAssociation", | ||
"name": "dataInputAssociations", | ||
"type": "DataInputAssociation", | ||
@@ -641,3 +641,3 @@ "isMany": true | ||
{ | ||
"name": "dataOutputAssociation", | ||
"name": "dataOutputAssociations", | ||
"type": "DataOutputAssociation", | ||
@@ -644,0 +644,0 @@ "isMany": true |
@@ -86,2 +86,13 @@ 'use strict'; | ||
// fix event dataInput/dataOutput associations | ||
builder.alter('CatchEvent#dataOutputAssociation', function(desc) { | ||
desc.name = 'dataOutputAssociations'; | ||
}); | ||
builder.alter('ThrowEvent#dataInputAssociation', function(desc) { | ||
desc.name = 'dataInputAssociations'; | ||
}); | ||
// fix PotentialOwner#resourceRef | ||
@@ -88,0 +99,0 @@ |
@@ -169,2 +169,50 @@ 'use strict'; | ||
it('ThrowEvent#dataInputAssociations', function(done) { | ||
// given | ||
// when | ||
fromFile('test/fixtures/bpmn/throw-event-dataInputAssociations.part.bpmn', 'bpmn:EndEvent', function(err, result) { | ||
var expected = { | ||
$type: 'bpmn:EndEvent', | ||
id: 'EndEvent_1', | ||
dataInputAssociations: [ | ||
{ $type: 'bpmn:DataInputAssociation', id: 'DataInputAssociation_1' } | ||
] | ||
}; | ||
// then | ||
expect(result).to.jsonEqual(expected); | ||
done(err); | ||
}); | ||
}); | ||
it('CatchEvent#dataOutputAssociations', function(done) { | ||
// given | ||
// when | ||
fromFile('test/fixtures/bpmn/catch-event-dataOutputAssociations.part.bpmn', 'bpmn:StartEvent', function(err, result) { | ||
var expected = { | ||
$type: 'bpmn:StartEvent', | ||
id: 'StartEvent_1', | ||
dataOutputAssociations: [ | ||
{ $type: 'bpmn:DataOutputAssociation', id: 'DataOutputAssociation_1' } | ||
] | ||
}; | ||
// then | ||
expect(result).to.jsonEqual(expected); | ||
done(err); | ||
}); | ||
}); | ||
it('Escalation + Error', function(done) { | ||
@@ -171,0 +219,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
925120
94
6169