Skip to content

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

@despoina-kaz

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

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