use of org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnEdge in project camunda-bpmn-model by camunda.
the class DiGeneratorForSequenceFlowsTest method shouldGenerateEdgesForSequenceFlowsUsingGateway.
@Test
public void shouldGenerateEdgesForSequenceFlowsUsingGateway() {
ProcessBuilder builder = Bpmn.createExecutableProcess();
instance = builder.startEvent(START_EVENT_ID).sequenceFlowId("s1").parallelGateway("gateway").sequenceFlowId("s2").endEvent("e1").moveToLastGateway().sequenceFlowId("s3").endEvent("e2").done();
Collection<BpmnEdge> allEdges = instance.getModelElementsByType(BpmnEdge.class);
assertEquals(3, allEdges.size());
assertBpmnEdgeExists("s1");
assertBpmnEdgeExists("s2");
assertBpmnEdgeExists("s3");
}
use of org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnEdge in project camunda-bpmn-model by camunda.
the class AbstractBaseElementBuilder method createEdge.
public BpmnEdge createEdge(BaseElement baseElement) {
BpmnPlane bpmnPlane = findBpmnPlane();
if (bpmnPlane != null) {
BpmnEdge edge = createInstance(BpmnEdge.class);
edge.setBpmnElement(baseElement);
setWaypoints(edge);
bpmnPlane.addChildElement(edge);
return edge;
}
return null;
}
Aggregations