bpmn-moddle
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,0 +0,0 @@ module.exports = function(grunt) { |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ var BpmnModdle = require('./bpmn-moddle'); |
{ | ||
"name": "bpmn-moddle", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A moddle wrapper for BPMN 2.0", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -0,0 +0,0 @@ # bpmn-moddle |
@@ -129,3 +129,4 @@ { | ||
"type": "MessageVisibleKind", | ||
"isAttr": true | ||
"isAttr": true, | ||
"default": "initiating" | ||
} | ||
@@ -132,0 +133,0 @@ ], |
@@ -0,0 +0,0 @@ var chai = require('chai'); |
@@ -0,0 +0,0 @@ var fs = require('fs'), |
@@ -0,0 +0,0 @@ module.exports = function(chai, utils) { |
@@ -113,3 +113,30 @@ 'use strict'; | ||
builder.alter('Gateway#gatewayDirection', function(desc) { | ||
desc.default = 'Unspecified'; | ||
}); | ||
builder.alter('EventBasedGateway#eventGatewayType', function(desc) { | ||
desc.default = 'Exclusive'; | ||
}); | ||
builder.alter('CatchEvent#parallelMultiple', function(desc) { | ||
desc.default = false; | ||
}); | ||
builder.alter('ParticipantMultiplicity#minimum', function(desc) { | ||
desc.default = 0; | ||
}); | ||
builder.alter('ParticipantMultiplicity#maximum', function(desc) { | ||
desc.default = 1; | ||
}); | ||
builder.alter('Activity#startQuantity', function(desc) { | ||
desc.default = 1; | ||
}); | ||
builder.alter('Activity#completionQuantity', function(desc) { | ||
desc.default = 1; | ||
}); | ||
builder.alter('DataAssociation#targetRef', function(desc) { | ||
@@ -144,2 +171,6 @@ delete desc.isAttr; | ||
builder.alter('BPMNEdge#messageVisibleKind', function(desc) { | ||
desc.default = 'initiating'; | ||
}); | ||
builder.exportTo('resources/bpmn/json/bpmndi.json'); | ||
@@ -146,0 +177,0 @@ }, done); |
@@ -55,2 +55,50 @@ 'use strict'; | ||
describe('defaults', function() { | ||
it('should init Gateway', function() { | ||
var gateway = moddle.create('bpmn:Gateway'); | ||
expect(gateway.gatewayDirection).to.eql('Unspecified'); | ||
}); | ||
it('should init BPMNShape', function() { | ||
var bpmnEdge = moddle.create('bpmndi:BPMNEdge'); | ||
expect(bpmnEdge.messageVisibleKind).to.eql('initiating'); | ||
}); | ||
it('should init EventBasedGateway', function() { | ||
var gateway = moddle.create('bpmn:EventBasedGateway'); | ||
expect(gateway.eventGatewayType).to.eql('Exclusive'); | ||
}); | ||
it('should init CatchEvent', function() { | ||
var event = moddle.create('bpmn:CatchEvent'); | ||
expect(event.parallelMultiple).to.eql(false); | ||
}); | ||
it('should init ParticipantMultiplicity', function() { | ||
var participantMultiplicity = moddle.create('bpmn:ParticipantMultiplicity'); | ||
expect(participantMultiplicity.minimum).to.eql(0); | ||
expect(participantMultiplicity.maximum).to.eql(1); | ||
}); | ||
it('should init Activity', function() { | ||
var activity = moddle.create('bpmn:Activity'); | ||
expect(activity.startQuantity).to.eql(1); | ||
expect(activity.completionQuantity).to.eql(1); | ||
}); | ||
}); | ||
}); | ||
@@ -57,0 +105,0 @@ |
@@ -0,0 +0,0 @@ var Helper = require('../helper'); |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ var _ = require('lodash'); |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
878328
4938
0