A BPMN.js extension to improve working with SpiffWorkflow - the python BPMN engine.
Go to file
dependabot[bot] 8cd50408c8
Bump crazy-max/ghaction-github-labeler from 3.1.1 to 4.0.0
Bumps [crazy-max/ghaction-github-labeler](https://github.com/crazy-max/ghaction-github-labeler) from 3.1.1 to 4.0.0.
- [Release notes](https://github.com/crazy-max/ghaction-github-labeler/releases)
- [Changelog](https://github.com/crazy-max/ghaction-github-labeler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crazy-max/ghaction-github-labeler/compare/v3.1.1...v4.0.0)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-github-labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 15:17:54 +00:00
.github Bump crazy-max/ghaction-github-labeler from 3.1.1 to 4.0.0 2022-06-09 15:17:54 +00:00
app setting up some basic tests - just to assure things are working correctly. 2022-06-08 16:31:17 -04:00
docs update readme with pretty picture 2022-06-07 15:15:32 -04:00
resources all the components for doing data/input and data/output 2022-06-07 15:08:47 -04:00
test setting up some basic tests - just to assure things are working correctly. 2022-06-08 16:31:17 -04:00
.babelrc setting up some basic tests - just to assure things are working correctly. 2022-06-08 16:31:17 -04:00
.eslintrc first commit 2022-06-07 14:16:49 -04:00
.gitignore first commit 2022-06-07 14:16:49 -04:00
LICENSE add license, update readme, add more docs in the file. 2022-06-07 15:30:55 -04:00
README.md add license, update readme, add more docs in the file. 2022-06-07 15:30:55 -04:00
karma.conf.js setting up some basic tests - just to assure things are working correctly. 2022-06-08 16:31:17 -04:00
package-lock.json setting up some basic tests - just to assure things are working correctly. 2022-06-08 16:31:17 -04:00
package.json setting up some basic tests - just to assure things are working correctly. 2022-06-08 16:31:17 -04:00
webpack.config.js first commit 2022-06-07 14:16:49 -04:00

README.md

SpiffWorkflow Extensions for BPMN.js

This package provides extensions that can be applied to BPMN.js that will enable some important features of SpiffWorkflow - the Python BPMN Library for executing business processes. See below for more information.

IMPROTANT: This is a work in progress, and is not yet released.

About

This extension creates a BPMN editor with all the capabilities of BPMN.js and the following additions / modifications:

  • Ability to insert BPMN's Data Input and Data Output Objects.
  • A SpiffWorkflow centric Properties Panel for specifying scripts to run before and after a task, and for defining documentation, and Mark-up content for displaying in user and manual tasks. Among other things.

Future Plans

  • We look forward to integrating a real time Python execution environment for live script development.

Data Input and Data Output Element

This extension will allow you to drag BPMN Data Input and Data Output elements onto the diagram and give them appropriate labels. This will generate valid BPMN elements in the underlying XML file - connecting them to the IO Specification of the process, as shown below:

  <bpmn:process id="my_delightful_process" isExecutable="true">
    <bpmn:ioSpecification>
      <bpmn:dataInput id="DataInput-745019423-1" name="num_dogs" />
      <bpmn:dataOutput id="DataOutput-711207596-1" name="happy_index" />
    </bpmn:ioSpecification>
    ...

Screenshot

Using these data input and outputs will allow you to create processes designed to be used as Call Activities. SpiffWorkflow (in a soon-to-be released version) will pick up this information, and enforce it. So that you must provide these input variables to execute, and only the variables mentioned in the output will be passed back to the calling process.

Usage

import BpmnModeler from 'bpmn-js/lib/Modeler';
import IoModule from 'bpmn-js-spiffworkflow/lib/io';


var bpmnJS = new BpmnModeler({
  additionalModules: [
    spiffworkflow
  ]
});

Run the Example

You need a NodeJS development stack with npm installed to build the project.

To install all project dependencies execute

npm install

To start the example execute

npm start

To build the example into the public folder execute

npm run all

License

MIT