lcp-bpmn

A bpmn 2.0 toolkit and web modeler

Usage no npm install needed!

<script type="module">
  import lcpBpmn from 'https://cdn.skypack.dev/lcp-bpmn';
</script>

README

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();