lcp-bpmn

0.1.4 • Public • Published

lcp-bpmn - BPMN 2.0 for the lcp

Usage

const process = '...';
const viewer = new BpmnJS({
  container: 'body'
});

try {
  const { warnings } = await viewer.importProcess(process);
  console.log('rendered');
} catch (err) {
  console.log('error rendering', err);
}

Dynamic Attach/Detach

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

const viewer = new BpmnJS();

// attach it to some element
viewer.attachTo('#container');

// detach the panel
viewer.detach();

Readme

Keywords

Package Sidebar

Install

npm i lcp-bpmn

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

3 MB

Total Files

104

Last publish

Collaborators

  • lip966