Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jp-bpmn-js-properties-panel

bpmn-io231MIT5.2.8

A simple properties panel for bpmn-js

bpmn-js, properties, properties-panel

readme

bpmn-js-properties-panel

Build Status

A properties panel extension for bpmn-js that adds the ability to edit technical properties (generic and Flowable).

bpmn-js-properties-panel screenshot

Features

The properties panel allows users to edit invisible BPMN properties in a convenient way.

Some of the features are:

  • Edit element ids, multi-instance details and more
  • Edit execution related Flowable properties
  • Redo and undo (plugs into the bpmn-js editing cycle)

Usage

Provide two HTML elements, one for the properties panel and one for the BPMN diagram:

<div class="modeler">
  <div id="canvas"></div>
  <div id="properties"></div>
</div>

Bootstrap bpmn-js with the properties panel and a properties provider:

var BpmnJS = require('jeeplus-bpmn/lib/Modeler'),
    propertiesPanelModule = require('bpmn-js-properties-panel'),
    propertiesProviderModule = require('bpmn-js-properties-panel/lib/provider/bpmn');

var bpmnJS = new BpmnJS({
  additionalModules: [
    propertiesPanelModule,
    propertiesProviderModule
  ],
  container: '#canvas',
  propertiesPanel: {
    parent: '#properties'
  }
});

Dynamic Attach/Detach

You may attach or detach the properties panel dynamically to any element on the page, too:

var propertiesPanel = bpmnJS.get('propertiesPanel');

// detach the panel
propertiesPanel.detach();

// attach it to some other element
propertiesPanel.attachTo('#other-properties');

Use with Flowable properties

In order to be able to edit Flowable related properties, use the flowable properties provider. In addition, you need to define the flowable namespace via flowable-bpmn-moddle.

var BpmnJS = require('jeeplus-bpmn/lib/Modeler'),
    propertiesPanelModule = require('bpmn-js-properties-panel'),
    // use Flowable properties provider
    propertiesProviderModule = require('bpmn-js-properties-panel/lib/provider/flowable');

// a descriptor that defines Flowable related BPMN 2.0 XML extensions
var flowableModdleDescriptor = require('flowable-bpmn-moddle/resources/flowable');

var bpmnJS = new BpmnJS({
  additionalModules: [
    propertiesPanelModule,
    propertiesProviderModule
  ],
  container: '#canvas',
  propertiesPanel: {
    parent: '#properties'
  },
  // make flowable prefix known for import, editing and export
  moddleExtensions: {
    flowable: flowableModdleDescriptor
  }
});

...

Additional Resources

Development

Running the tests

npm install

export TEST_BROWSERS=Chrome
npm run all

License

MIT

changelog

Changelog

All notable changes to bpmn-js-properties-panel are documented here. We use semantic versioning for releases.

Unreleased

_Note: Yet to be released changes appear here._

0.32.1

  • FIX: don't allow editing of flowable:InputOutput on gateways (#314)

0.32.0

  • FEAT: support flowable:errorMessage (#313)
  • CHORE: move flowable related error properties to correct provider (957beb)

0.31.0

  • FEAT: sanitize entities when building HTML (#296)
  • FEAT: support name editing for bpmn:Group
  • FEAT: improve text annotation label
  • FEAT: translate error messages
  • FIX: remove accidential whitespace (180ba5b9)
  • CHORE: update bpmn-js peer dependency range to ^3.x || ^4.x

0.30.0

  • FEAT: improve localization (#295)
  • FEAT: add hint about task definition key in user task (#294)

0.29.0

  • FEAT: add hints to returned Java types (#286)
  • FEAT: show target variable name instead of index (#287)

0.28.2

0.28.1

  • FIX: handle correct flowable:isStartableInTasklist default value

0.28.0

  • FEAT: support flowable:isStartableInTasklist (#284)
  • FIX: don't restrict properties panel height unnecessarily (#283)

0.27.0

  • CHORE: bpmn-js@3 compatibility

0.26.0

  • FEAT: provide pre-built styles
  • CHORE: bump dependency versions
  • CHORE: migrate to lodash@4

0.25.2

  • FIX: correct variable mapping not removing target props

0.25.1

  • FIX: handle delete key strokes in selects

0.25.0

0.24.1

  • FIX: show description for select entries

0.24.0

  • FEAT: binding of business rule tasks and call activities can be set to version tag 10738e92

  • FEAT: validate source and target of of variables dd163e66

  • FEAT: selecting label of an element will show all element properties in properties panel 40935240

  • FEAT: condition of conditional events can be set to script c38f90bd

  • FIX: form data is removed when empty 481b5c1f

  • FEAT: business key expression of flowable ins can be edited 3f1d780f

  • FIX: timer definition type of intermediate catching events can't be set to cycle 6c757170

  • FEAT: candidate starter users and groups of processes can be edited c1d51285

  • FEAT: variables of signal events can be edited aba8287e

  • FEAT: condition and variable name of conditional start events can be edited 9cc1d6c5

...

Check git log for earlier history.