Skip to content

[FEAT] Add support for BPMN data objects #2916

@StefanAmEnde

Description

@StefanAmEnde

Describe the bug
When modelling the data-flow perspective in BPMN you use data objects. Although they are correctly shown in the Camunda Modeler, bpmn-visualization will show warnings in the console like e.g.

bpmn-visualization.esm.js:3023 [bv-parser] Edge json deserialization: unable to find bpmn element with id DataOutputAssociation_0yl0bbm

and doesn't display the data objects nor their associations.

To Reproduce
Steps to reproduce the behavior:

  1. Create a bpmn process model containing at least one data-object.
    Example:
    image
  2. integrate the process model in a web application like so:
const xml = "[the bpmn model xml]"
const bpmnVisualization = new BpmnVisualization({container: 'bpmnContainer', navigation: {enabled: true}})
bpmnVisualization.load(xml)
  1. observe that the data object(s) is not displayed and warnings are printed in the console

Expected behavior
I expect that data objects should be displayed.

Screenshots
In camunda modeler:
image

In bpmn-visualization:
image

Console:
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome Version 117.0.5938.134
  • Version 0.41.0

Additional context
I'm using bpmn-visualization in a react application. But the problem should be independent of a specific framework.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BPMN supportSomething about the BPMN specification that the lib is already supporting or will supportenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions