/** * Sets the source flow node of this sequence flow. * * @param source the source of this sequence flow * @return the builder object */ public B from(FlowNode source) { element.setSource(source); source.getOutgoing().add(element); return myself; }
Collection<SequenceFlow> outgoing = flowNode.getOutgoing();
/** * Sets the source flow node of this sequence flow. * * @param source the source of this sequence flow * @return the builder object */ public B from(FlowNode source) { element.setSource(source); source.getOutgoing().add(element); return myself; }
/** * Sets the source flow node of this sequence flow. * * @param source the source of this sequence flow * @return the builder object */ public B from(FlowNode source) { element.setSource(source); source.getOutgoing().add(element); return myself; }
public ModifiableBpmnModelInstance removeFlowNode(String flowNodeId) { FlowNode flowNode = getModelElementById(flowNodeId); ModelElementInstance scope = flowNode.getParentElement(); for (SequenceFlow outgoingFlow : flowNode.getOutgoing()) { removeBpmnEdge(outgoingFlow); scope.removeChildElement(outgoingFlow); } for (SequenceFlow incomingFlow : flowNode.getIncoming()) { removeBpmnEdge(incomingFlow); scope.removeChildElement(incomingFlow); } Collection<Association> associations = scope.getChildElementsByType(Association.class); for (Association association : associations) { if (flowNode.equals(association.getSource()) || flowNode.equals(association.getTarget())) { removeBpmnEdge(association); scope.removeChildElement(association); } } removeBpmnShape(flowNode); scope.removeChildElement(flowNode); return this; }
if (edgeSource.getOutgoing().size() == 1) { w1.setX(sourceX + sourceWidth); w1.setY(sourceY + sourceHeight / 2);
Collection<SequenceFlow> outgoing = flowNode.getOutgoing();
Collection<SequenceFlow> outgoing = flowNode.getOutgoing();
public ModifiableBpmnModelInstance removeFlowNode(String flowNodeId) { FlowNode flowNode = getModelElementById(flowNodeId); ModelElementInstance scope = flowNode.getParentElement(); for (SequenceFlow outgoingFlow : flowNode.getOutgoing()) { removeBpmnEdge(outgoingFlow); scope.removeChildElement(outgoingFlow); } for (SequenceFlow incomingFlow : flowNode.getIncoming()) { removeBpmnEdge(incomingFlow); scope.removeChildElement(incomingFlow); } Collection<Association> associations = scope.getChildElementsByType(Association.class); for (Association association : associations) { if (flowNode.equals(association.getSource()) || flowNode.equals(association.getTarget())) { removeBpmnEdge(association); scope.removeChildElement(association); } } removeBpmnShape(flowNode); scope.removeChildElement(flowNode); return this; }
if (edgeSource.getOutgoing().size() == 1) { w1.setX(sourceX + sourceWidth); w1.setY(sourceY + sourceHeight / 2);
if (edgeSource.getOutgoing().size() == 1) { w1.setX(sourceX + sourceWidth); w1.setY(sourceY + sourceHeight / 2);