@SuppressWarnings("unchecked") protected <T extends AbstractFlowNodeBuilder, F extends FlowNode> T createTargetBuilder(Class<F> typeClass, String id) { AbstractFlowNodeBuilder builder = createTarget(typeClass, id).builder(); if (compensationStarted) { // pass on current boundary event to return after compensationDone call builder.compensateBoundaryEvent = compensateBoundaryEvent; } return (T) builder; }
@SuppressWarnings("rawtypes") public AbstractFlowNodeBuilder moveToNode(String identifier) { ModelElementInstance instance = modelInstance.getModelElementById(identifier); if (instance != null && instance instanceof FlowNode) { return ((FlowNode) instance).builder(); } else { throw new BpmnModelException("Flow node not found for id " + identifier); } }
@SuppressWarnings("rawtypes") public AbstractFlowNodeBuilder connectTo(String identifier) { ModelElementInstance target = modelInstance.getModelElementById(identifier); if (target == null) { throw new BpmnModelException("Unable to connect " + element.getId() + " to element " + identifier + " cause it not exists."); } else if (!(target instanceof FlowNode)) { throw new BpmnModelException("Unable to connect " + element.getId() + " to element " + identifier + " cause its not a flow node."); } else { FlowNode targetNode = (FlowNode) target; connectTarget(targetNode); return targetNode.builder(); } }
@SuppressWarnings("unchecked") protected <T extends AbstractFlowNodeBuilder, F extends FlowNode> T createTargetBuilder(Class<F> typeClass, String id) { AbstractFlowNodeBuilder builder = createTarget(typeClass, id).builder(); if (compensationStarted) { // pass on current boundary event to return after compensationDone call builder.compensateBoundaryEvent = compensateBoundaryEvent; } return (T) builder; }
@SuppressWarnings("unchecked") protected <T extends AbstractFlowNodeBuilder, F extends FlowNode> T createTargetBuilder(Class<F> typeClass, String id) { AbstractFlowNodeBuilder builder = createTarget(typeClass, id).builder(); if (compensationStarted) { // pass on current boundary event to return after compensationDone call builder.compensateBoundaryEvent = compensateBoundaryEvent; } return (T) builder; }
@SuppressWarnings("rawtypes") public AbstractFlowNodeBuilder moveToNode(String identifier) { ModelElementInstance instance = modelInstance.getModelElementById(identifier); if (instance != null && instance instanceof FlowNode) { return ((FlowNode) instance).builder(); } else { throw new BpmnModelException("Flow node not found for id " + identifier); } }
@SuppressWarnings("rawtypes") public AbstractFlowNodeBuilder moveToNode(String identifier) { ModelElementInstance instance = modelInstance.getModelElementById(identifier); if (instance != null && instance instanceof FlowNode) { return ((FlowNode) instance).builder(); } else { throw new BpmnModelException("Flow node not found for id " + identifier); } }
@SuppressWarnings("rawtypes") public AbstractFlowNodeBuilder connectTo(String identifier) { ModelElementInstance target = modelInstance.getModelElementById(identifier); if (target == null) { throw new BpmnModelException("Unable to connect " + element.getId() + " to element " + identifier + " cause it not exists."); } else if (!(target instanceof FlowNode)) { throw new BpmnModelException("Unable to connect " + element.getId() + " to element " + identifier + " cause its not a flow node."); } else { FlowNode targetNode = (FlowNode) target; connectTarget(targetNode); return targetNode.builder(); } }
@SuppressWarnings("rawtypes") public AbstractFlowNodeBuilder connectTo(String identifier) { ModelElementInstance target = modelInstance.getModelElementById(identifier); if (target == null) { throw new BpmnModelException("Unable to connect " + element.getId() + " to element " + identifier + " cause it not exists."); } else if (!(target instanceof FlowNode)) { throw new BpmnModelException("Unable to connect " + element.getId() + " to element " + identifier + " cause its not a flow node."); } else { FlowNode targetNode = (FlowNode) target; connectTarget(targetNode); return targetNode.builder(); } }