Socket
Socket
Sign inDemoInstall

bpmnlint

Package Overview
Dependencies
Maintainers
8
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmnlint - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## 7.2.1
* `FIX`: exclude compensation boundary and activity in `no-disconnected` check ([#https://github.com/bpmn-io/bpmnlint/pull/60](https://github.com/bpmn-io/bpmnlint/pull/60))
## 7.2.0

@@ -11,0 +15,0 @@

2

package.json
{
"name": "bpmnlint",
"description": "Validate your BPMN diagrams based on configurable lint rules",
"version": "7.2.0",
"version": "7.2.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "keywords": [

# bpmnlint
[![Build Status](https://travis-ci.com/bpmn-io/bpmnlint.svg?branch=master)](https://travis-ci.com/bpmn-io/bpmnlint)
[![CI](https://github.com/bpmn-io/bpmnlint/workflows/CI/badge.svg)](https://github.com/bpmn-io/bpmnlint/actions?query=workflow%3ACI)

@@ -5,0 +5,0 @@ Validate your BPMN diagrams based on configurable lint rules.

const {
isAny
isAny,
is
} = require('bpmnlint-utils');

@@ -24,2 +25,9 @@

// compensation activity and boundary events are
// linked visually via associations. If these associations
// exist we are fine, too
if (isCompensationLinked(node)) {
return;
}
const incoming = node.incoming || [];

@@ -36,3 +44,32 @@ const outgoing = node.outgoing || [];

};
};
};
// helpers /////////////////
function isCompensationBoundary(node) {
var eventDefinitions = node.eventDefinitions;
if (!is(node, 'bpmn:BoundaryEvent')) {
return false;
}
if (!eventDefinitions || eventDefinitions.length !== 1) {
return false;
}
return is(eventDefinitions[0], 'bpmn:CompensateEventDefinition');
}
function isCompensationActivity(node) {
return node.isForCompensation;
}
function isCompensationLinked(node) {
var source = isCompensationBoundary(node);
var target = isCompensationActivity(node);
// TODO(nikku): check, whether compensation association exists
return source || target;
}
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