bpmn-io / bpmn-js-token-simulation

A BPMN 2.0 specification compliant token simulator.

Home Page:https://bpmn-io.github.io/bpmn-js-token-simulation/modeler.html?e=1&pp=1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bpmn-js Token Simulation

CI

A BPMN 2.0 specification compliant token simulator, built as a bpmn-js extension.

Screencast

Try it on the classic booking example or checkout the full capability demo.

Installation

Install via npm.

npm install bpmn-js-token-simulation

Usage

Add as additional module to bpmn-js.

Modeler

import BpmnModeler from 'bpmn-js/lib/Modeler';
import TokenSimulationModule from 'bpmn-js-token-simulation';

const modeler = new BpmnModeler({
  container: '#canvas',
  additionalModules: [
    TokenSimulationModule
  ]
});

Viewer

import BpmnViewer from 'bpmn-js/lib/NavigatedViewer';
import TokenSimulationModule from 'bpmn-js-token-simulation/lib/viewer';

const viewer = new BpmnViewer({
  container: '#canvas',
  additionalModules: [
    TokenSimulationModule
  ]
});

Build and Run

Prepare the project by installing all dependencies:

npm install

Then, depending on your use-case you may run any of the following commands:

# build the library and run all tests
npm run all

# run the full development setup
npm run dev

# spin up the example
npm run start:example

Additional Resources

Licence

MIT

About

A BPMN 2.0 specification compliant token simulator.

https://bpmn-io.github.io/bpmn-js-token-simulation/modeler.html?e=1&pp=1

License:MIT License


Languages

Language:JavaScript 93.0%Language:CSS 4.9%Language:HTML 1.9%Language:Shell 0.3%