Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
despoina-kaz opened this issue Feb 25, 2025 · 0 comments

Comments

@despoina-kaz
Copy link

despoina-kaz commented Feb 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant