Socket
Book a DemoInstallSign in
Socket

bpmn-js-transaction-boundaries

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-js-transaction-boundaries

A bpmn-js extension to visualize transaction boundaries

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

bpmn-js-transaction-boundaries

A bpmn-js extension to visualize transaction boundaries

transaction boundaries screenshot

Features

Visualize all transaction boundaries in a BPMN diagram.

This includes all BPMN elements that are wait states and have a boundary for incoming connections:

  • Intermediate Catching Message Event
  • Intermediate Catching Timer Event
  • Intermediate Catching Signal Event
  • Receive Task
  • User Task
  • Event Based Gateway

Furthermore all activities which have asynchronous continuations act as transaction boundaries. This is also valid for multi-instance activities.

Learn more about transactions and wait states.

Usage

Extend the bpmn-js modeler with the transaction boundaries module:


var BpmnModeler = require('bpmn-js/lib/Modeler');

var transactionBoundariesModule = require('bpmn-js-transaction-boundaries');

var canvas = $('#js-canvas');

var bpmnModeler = new BpmnModeler({
  container: canvas,
  additionalModules: [
    transactionBoundariesModule
  ]
});

bpmnModeler.importXML(xml, function(err) {

  if (err) {
      console.error(err);
    } else {
      var transactionBoundaries = bpmnModeler.get('transactionBoundaries');

      transactionBoundaries.show();
    }
  });

Please see this example for a more detailed instruction.

Test

npm install
npm test

Keywords

bpmn

FAQs

Package last updated on 12 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts