flowable / flowable/flowable-engine

Flowable-Process-Validation: No validation error for parallel gateway flow with default attribute

Aperta
#2,233 0 commenti 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

We are using flowable 6.5.0.

When a parallel gateway flow of is marked as default flowable-process-validation successfully validates the bpmn process (see attached simplified example).

[ParallelGatewayDefaultAttribute.bpmn20.xml.txt](https://github.com/flowable/flowable-engine/files/4358445/ParallelGatewayDefaultAttribute.bpmn20.xml.txt)

The deployment then fails with:

```
o.f.e.i.b.d.ParsedDeploymentBuilder : Could not parse resource ParallelGatewayDefaultAttribute.bpmn
org.flowable.bpmn.exceptions.XMLException: cvc-complex-type.3.2.2: Attribute 'default' is not allowed to appear in element 'parallelGateway'.
at org.flowable.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:276)
at org.flowable.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:148)
at org.flowable.engine.impl.bpmn.deployer.ParsedDeploymentBuilder.createBpmnParseFromResource(ParsedDeploymentBuilder.java:97)
at org.flowable.engine.impl.bpmn.deployer.ParsedDeploymentBuilder.build(ParsedDeploymentBuilder.java:55)
at org.flowable.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:78)
at org.flowable.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:62)
...
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'default' is not allowed to appear in element 'parallelGateway'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.jaxp.validation.StAXValidatorHelper$StreamHelper.validate(Unknown Source)
at org.apache.xerces.jaxp.validation.StAXValidatorHelper.validate(Unknown Source)
at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
at java.xml/javax.xml.validation.Validator.validate(Validator.java:124)
at org.flowable.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:225)
at org.flowable.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:269)
... 144 common frames omitted
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con il file allegato ParallelGatewayDefaultAttribute.bpmn20.xml.txt e il percorso di validazione in BpmnXMLConverter.validateModel e convertToBpmnModel, quindi confrontalo con il parsing del deployment in BpmnParse. Il lavoro è completato quando il validatore dei processi rifiuta l'attributo default non valido in modo coerente con il deployment e il comportamento è verificato da un controllo di regressione.

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
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.