{"record":{"id":"bb8cbc0082839054","repo":"flowable/flowable-engine","slug":"following-warnings-encountered-during-process-vali","errorCode":null,"errorMessage":"Following warnings encountered during process validation: {}","messagePattern":"Following warnings encountered during process validation: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"modules/flowable5-engine/src/main/java/org/activiti/engine/impl/bpmn/parser/BpmnParse.java","lineNumber":197,"sourceCode":"\n                        for (ValidationError error : validationErrors) {\n                            if (error.isWarning()) {\n                                warningBuilder.append(error);\n                                warningBuilder.append(\"\\n\");\n                            } else {\n                                errorBuilder.append(error);\n                                errorBuilder.append(\"\\n\");\n                            }\n                        }\n\n                        // Throw exception if there is any error\n                        if (errorBuilder.length() > 0) {\n                            throw new ActivitiException(\"Errors while parsing:\\n\" + errorBuilder);\n                        }\n\n                        // Write out warnings (if any)\n                        if (warningBuilder.length() > 0) {\n                            LOGGER.warn(\"Following warnings encountered during process validation: {}\", warningBuilder);\n                        }\n\n                    }\n                }\n            }\n\n            bpmnModel.setSourceSystemId(sourceSystemId);\n            bpmnModel.setEventSupport(new FlowableEventSupport());\n\n            // Validation successful (or no validation)\n            transformProcessDefinitions();\n\n        } catch (Exception e) {\n            if (e instanceof ActivitiException) {\n                throw (ActivitiException) e;\n            } else if (e instanceof XMLException) {\n                throw (XMLException) e;\n            } else {","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable5-engine/src/main/java/org/activiti/engine/impl/bpmn/parser/BpmnParse.java#L179-L215","documentation":"After parsing a BPMN model, BpmnParse logs any accumulated validation warnings (e.g. unknown attributes or elements that were tolerated during parse). It is a non-fatal notice logged from execute() when warningBuilder is non-empty; parsing continues and the deployment succeeds.","triggerScenarios":"Deploying or parsing a BPMN XML file whose model contains tolerated validation warnings collected during BpmnParse execution; occurs at the end of BpmnParse.execute() when warningBuilder.length() > 0.","commonSituations":"Deploying process definitions exported from modeling tools with vendor-specific or slightly non-standard BPMN; upgrading Flowable/Activiti where new validation checks flag previously ignored constructs.","solutions":["Read the warning body following this log line to see the specific warnings and fix the offending BPMN elements","Validate the BPMN XML against the Flowable XSD before deployment","Regenerate or correct the diagram/elements flagged in the modeler","If the warnings are benign for your use case, they can be safely ignored since deployment still proceeds"],"exampleFix":"// before\n<process id=\"p1\"><serviceTask id=\"t1\" flowable:unknownAttr=\"x\"/></process>\n// after\n<process id=\"p1\"><serviceTask id=\"t1\" flowable:delegateExpression=\"${bean}\"/></process>","handlingStrategy":"validation","validationCode":"// Validate BPMN before deployment\nBpmnXMLConverter converter = new BpmnXMLConverter();\nValidationResults results = converter.validateXml(inputStream, false);\nif (!results.getWarnings().isEmpty()) {\n    results.getWarnings().forEach(w -> logger.warn(\"BPMN warning: {}\", w.toString()));\n    // fix model or proceed knowingly\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run the BpmnXMLConverter validation as a build/deploy step","Keep modeler plugins and Flowable versions aligned","Review logged warnings after each deployment of changed models"],"tags":["bpmn","parsing","validation"],"backgroundTag":"schema-validation-failed","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-18T11:17:12.947Z"}