flowable / flowable/flowable-engine

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

Aperta
#4,031 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
9.5k
Fork
2.9k
Merge medio
7h 8m
PR unite (30g)
2

Descrizione

**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: https://github.com/flowable/flowable-engine/blob/3cc4d5e225c7ab2ccbba5f95b9441c842f743307/modules/flowable-app-rest/src/main/resources/reviewSalesLead.bpmn20.xml#L11
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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Reproduce the round trip using DeploymentBuilderImpl.addBpmnModel with the reviewSalesLead.bpmn20.xml example, then inspect BpmnXMLConverter.convertToXML and the resulting bpmn20Xml string. Compare the error boundary event in the original BpmnModel, serialized XML, and repositoryService.getProcessModel result; done means the error remains present after deployment and retrieval.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
backend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.