@Override protected List<ProcessDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) { byte[] bytes = resource.getBytes(); ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes); BpmnParse bpmnParse = bpmnParser .createParse() .sourceInputStream(inputStream) .deployment(deployment) .name(resource.getName()); if (!deployment.isValidatingSchema()) { bpmnParse.setSchemaResource(null); } bpmnParse.execute(); if (!properties.contains(JOB_DECLARATIONS_PROPERTY)) { properties.set(JOB_DECLARATIONS_PROPERTY, new HashMap<String, List<JobDeclaration<?, ?>>>()); } properties.get(JOB_DECLARATIONS_PROPERTY).putAll(bpmnParse.getJobDeclarations()); return bpmnParse.getProcessDefinitions(); }
@Override protected List<ProcessDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) { byte[] bytes = resource.getBytes(); ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes); BpmnParse bpmnParse = bpmnParser .createParse() .sourceInputStream(inputStream) .deployment(deployment) .name(resource.getName()); if (!deployment.isValidatingSchema()) { bpmnParse.setSchemaResource(null); } bpmnParse.execute(); if (!properties.contains(JOB_DECLARATIONS_PROPERTY)) { properties.set(JOB_DECLARATIONS_PROPERTY, new HashMap<String, List<JobDeclaration<?, ?>>>()); } properties.get(JOB_DECLARATIONS_PROPERTY).putAll(bpmnParse.getJobDeclarations()); return bpmnParse.getProcessDefinitions(); }
@Override protected List<ProcessDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) { byte[] bytes = resource.getBytes(); ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes); BpmnParse bpmnParse = bpmnParser .createParse() .sourceInputStream(inputStream) .deployment(deployment) .name(resource.getName()); if (!deployment.isValidatingSchema()) { bpmnParse.setSchemaResource(null); } bpmnParse.execute(); if (!properties.contains(JOB_DECLARATIONS_PROPERTY)) { properties.set(JOB_DECLARATIONS_PROPERTY, new HashMap<String, List<JobDeclaration<?, ?>>>()); } properties.get(JOB_DECLARATIONS_PROPERTY).putAll(bpmnParse.getJobDeclarations()); return bpmnParse.getProcessDefinitions(); }