Hello guys, i am loading a bpmn model from a file and calling the Bpmn.validateModel(modelInstance) method. The validation occur with success and no exception is raised… No error happen, but the model are not going to the database. Somebody can help me to find out why it happen?
public Deployment deployDiagram(String modelName, InputStream is) {
BpmnModelInstance modelInstance = Bpmn.readModelFromStream(is);
applyDeploymentRules(modelInstance);
Bpmn.validateModel(modelInstance);
return processEngine.getRepositoryService().createDeployment()
.addModelInstance(modelName, modelInstance).deploy();
}