Skip to content

BPMN import to existing form fails #2736

@frb42

Description

@frb42

Bug Report

Please provide information about your setup

  • formsflow.ai Version: 7.0.0
  • Browser: Edge, Firefox, ... (browser independent bug)
  • Browser version:

Steps to Reproduce

  1. Create a new form (New Form button --> Build)
  2. Upload the following BPMN file to the newly created form:

minimal_example.txt

(Since uploading files with ending .bpmn in issues is not allowed, I changed the ending to .txt. Please revert this change before uploading the file to reproduce the error.)

Observed Behaviour

Upload result:

Image

The process referenced by the participant in the BPMN file is missing completely.

Expected Behaviour

The upload result should contain the process and the referenced participant as shown in the picture below:

Image

Notes

A slightly modified version of the BPMN file can be uploaded successfully. If the id attribute of the process and the processRef attribute of the participant are changed to the ID of the newly created form before uploading, then the import works as expected.

The reason seems to be the change of the process key in the file forms-flow-api/src/formsflow_api/services/import_support.py. There uploaded file is stored under the existing process key of the newly created form, but the contents of the BPMN file is not adapted to this (i.e. the processRef attribute of the participant is not changed). In consequence, the reference information between process and participant seem to be lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions