Socket
Socket
Sign inDemoInstall

bpmn-moddle

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-moddle - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

test/spec/adapter/cmof/builder.js

0

Gruntfile.js

@@ -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');

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc