org.activiti.engine.impl.bpmn.parser.BpmnParser Java Examples
The following examples show how to use
org.activiti.engine.impl.bpmn.parser.BpmnParser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProcessDiagramLayoutFactory.java From activiti6-boot2 with Apache License 2.0 | 6 votes |
protected Map<String, DiagramNode> getElementBoundsFromBpmnDi(Document bpmnModel) { Map<String, DiagramNode> listOfBounds = new HashMap<String, DiagramNode>(); // iterate over all DI shapes NodeList shapes = bpmnModel.getElementsByTagNameNS(BpmnParser.BPMN_DI_NS, "BPMNShape"); for (int i = 0; i < shapes.getLength(); i++) { Element shape = (Element) shapes.item(i); String bpmnElementId = shape.getAttribute("bpmnElement"); // get bounds of shape NodeList childNodes = shape.getChildNodes(); for (int j = 0; j < childNodes.getLength(); j++) { Node childNode = childNodes.item(j); if (childNode instanceof Element && BpmnParser.BPMN_DC_NS.equals(childNode.getNamespaceURI()) && "Bounds".equals(childNode.getLocalName())) { DiagramNode bounds = parseBounds((Element) childNode); bounds.setId(bpmnElementId); listOfBounds.put(bpmnElementId, bounds); break; } } } return listOfBounds; }
Example #2
Source File: ProcessDiagramLayoutFactory.java From flowable-engine with Apache License 2.0 | 6 votes |
protected Map<String, DiagramNode> getElementBoundsFromBpmnDi(Document bpmnModel) { Map<String, DiagramNode> listOfBounds = new HashMap<>(); // iterate over all DI shapes NodeList shapes = bpmnModel.getElementsByTagNameNS(BpmnParser.BPMN_DI_NS, "BPMNShape"); for (int i = 0; i < shapes.getLength(); i++) { Element shape = (Element) shapes.item(i); String bpmnElementId = shape.getAttribute("bpmnElement"); // get bounds of shape NodeList childNodes = shape.getChildNodes(); for (int j = 0; j < childNodes.getLength(); j++) { Node childNode = childNodes.item(j); if (childNode instanceof Element && BpmnParser.BPMN_DC_NS.equals(childNode.getNamespaceURI()) && "Bounds".equals(childNode.getLocalName())) { DiagramNode bounds = parseBounds((Element) childNode); bounds.setId(bpmnElementId); listOfBounds.put(bpmnElementId, bounds); break; } } } return listOfBounds; }
Example #3
Source File: ProcessEngineConfigurationImpl.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public BpmnParser getBpmnParser() { return bpmnParser; }
Example #4
Source File: ProcessEngineConfigurationImpl.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public ProcessEngineConfigurationImpl setBpmnParser(BpmnParser bpmnParser) { this.bpmnParser = bpmnParser; return this; }
Example #5
Source File: DefaultBpmnParseFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public BpmnParse createBpmnParse(BpmnParser bpmnParser) { return new BpmnParse(bpmnParser); }
Example #6
Source File: ParsedDeploymentBuilder.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public ParsedDeploymentBuilder(DeploymentEntity deployment, BpmnParser bpmnParser, Map<String, Object> deploymentSettings) { this.deployment = deployment; this.bpmnParser = bpmnParser; this.deploymentSettings = deploymentSettings; }
Example #7
Source File: ParsedDeploymentBuilderFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public BpmnParser getBpmnParser() { return bpmnParser; }
Example #8
Source File: ParsedDeploymentBuilderFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public void setBpmnParser(BpmnParser bpmnParser) { this.bpmnParser = bpmnParser; }
Example #9
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
public BpmnParser getBpmnParser() { return bpmnParser; }
Example #10
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
public ProcessEngineConfigurationImpl setBpmnParser(BpmnParser bpmnParser) { this.bpmnParser = bpmnParser; return this; }
Example #11
Source File: DefaultBpmnParseFactory.java From flowable-engine with Apache License 2.0 | 4 votes |
@Override public BpmnParse createBpmnParse(BpmnParser bpmnParser) { return new BpmnParse(bpmnParser); }
Example #12
Source File: BpmnDeployer.java From flowable-engine with Apache License 2.0 | 4 votes |
public BpmnParser getBpmnParser() { return bpmnParser; }
Example #13
Source File: BpmnDeployer.java From flowable-engine with Apache License 2.0 | 4 votes |
public void setBpmnParser(BpmnParser bpmnParser) { this.bpmnParser = bpmnParser; }
Example #14
Source File: BpmnParseFactory.java From activiti6-boot2 with Apache License 2.0 | votes |
BpmnParse createBpmnParse(BpmnParser bpmnParser);
Example #15
Source File: BpmnParseFactory.java From flowable-engine with Apache License 2.0 | votes |
BpmnParse createBpmnParse(BpmnParser bpmnParser);