Visual Task Priorities for bpmn-js
Extend bpmn-js to define tasks priorities while modeling.
Features
- Color elements based on
tp:color
extension attribute - Compute and display priorities based on color and task size
- Serializes the computed priority via the
tp:priority
for usage during process execution
Usage
Fetch it as a dependency via npm:
npm install bpmn-js-task-priorities
Use the modeler as part of your application:
var PriorityAwareModeler = ; var modeler = ; modeler;
Or use the provided extension module with bpmn-js:
var Modeler = ; var prioritiesModule = ; var modeler = additionalModules: prioritiesModule ;
Specify tasks colors in XML and read the serialized tp:color
and tp:priority
extension attributes:
...
Building
npm install
npm run test:watch
License
MIT