Skip to content

Error of boundary event is lost when converting to xml at DeploymentBuilderImpl.class #4031

Open

Description

@despoina-kaz

Describe the bug
I try to deploy a bpmn model that has an error for an error boundary event but when I try to get file back the model doesn’t have the error anymore.
I tried with this file also:

<error id="notEnoughInfoError" errorCode="not_enough_info" />

I deploy my file like this:

Deployment deployment = repositoryService.createDeployment() .addBpmnModel(resourceName, model) .deploy();

and I am retrieving it like this:

repositoryService.getProcessModel(processDefinitionId)

I’ve noticed that inside DeploymentBuilderImpl.class here:

public DeploymentBuilder addBpmnModel(String resourceName, BpmnModel bpmnModel) { BpmnXMLConverter bpmnXMLConverter = new BpmnXMLConverter(); String bpmn20Xml = new String(bpmnXMLConverter.convertToXML(bpmnModel), StandardCharsets.UTF_8); addString(resourceName, bpmn20Xml); return this; }

My error is present at bpmn model but it’s not present at bpmn20Xml string.

Expected behavior
Error should be present when retrieving bpmn model

Code
Deployment deployment = repositoryService.createDeployment() .addBpmnModel(resourceName, model) .deploy();

Additional context
Flowable version: 7.1.0
used within Spring Boot app

Activity

  1. despoina-kaz commented on Jul 8, 2025

    @despoina-kaz
    Author

    The problem lies in this method:

    bpmnXMLConverter.convertToXML(bpmnModel)

    It doesn’t keep the error map.
    I’ve checked the code of this method and it has the following:

    DefinitionsRootExport.writeRootElement(model, xtw, encoding);
    CollaborationExport.writePools(model, xtw);
    DataStoreExport.writeDataStores(model, xtw);
    SignalAndMessageDefinitionExport.writeSignalsAndMessages(model, xtw);
    EscalationDefinitionExport.writeEscalations(model, xtw);

    And ErrorExport should be added too

  2. added a commit that references this issue on Oct 30, 2026
    615d664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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