/** * Sets a catch compensation definition. * * @return the builder object */ public B compensation() { CompensateEventDefinition compensateEventDefinition = createCompensateEventDefinition(); element.getEventDefinitions().add(compensateEventDefinition); return myself; }
public StartEventBuilder startEvent(String id) { StartEvent start = createChild(StartEvent.class, id); BpmnShape bpmnShape = createBpmnShape(start); setCoordinates(bpmnShape); return start.builder(); }
/** * @deprecated use camundaAsyncBefore() instead. * * Sets the camunda async attribute to true. * * @return the builder object */ @Deprecated public B camundaAsync() { element.setCamundaAsyncBefore(true); return myself; }
/** * Sets whether the start event is interrupting or not. */ public B interrupting(boolean interrupting) { element.setInterrupting(interrupting); return myself; }
/** * Sets the camunda initiator attribute. * * @param camundaInitiator the initiator to set * @return the builder object */ public B camundaInitiator(String camundaInitiator) { element.setCamundaInitiator(camundaInitiator); return myself; }
/** * Sets the camunda form key attribute. * * @param camundaFormKey the form key to set * @return the builder object */ public B camundaFormKey(String camundaFormKey) { element.setCamundaFormKey(camundaFormKey); return myself; }
/** * Sets the camunda form handler class attribute. * * @param camundaFormHandlerClass the class name of the form handler * @return the builder object */ public B camundaFormHandlerClass(String camundaFormHandlerClass) { element.setCamundaFormHandlerClass(camundaFormHandlerClass); return myself; }
final BpmnElement srcElement = elementMap.get(incomingFlow.getId()); for (final StartEvent startEvent : startEvents) { final BpmnElement dstElement = elementMap.get(startEvent.getId()); graph.addEdge(srcElement, dstElement, 100); graph.removeEdge(srcElement, subprocessElement);
/** * Sets whether the start event is interrupting or not. */ public B interrupting(boolean interrupting) { element.setInterrupting(interrupting); return myself; }
/** * Sets the camunda initiator attribute. * * @param camundaInitiator the initiator to set * @return the builder object */ public B camundaInitiator(String camundaInitiator) { element.setCamundaInitiator(camundaInitiator); return myself; }
/** * Sets the camunda form key attribute. * * @param camundaFormKey the form key to set * @return the builder object */ public B camundaFormKey(String camundaFormKey) { element.setCamundaFormKey(camundaFormKey); return myself; }
/** * Sets the camunda form handler class attribute. * * @param camundaFormHandlerClass the class name of the form handler * @return the builder object */ public B camundaFormHandlerClass(String camundaFormHandlerClass) { element.setCamundaFormHandlerClass(camundaFormHandlerClass); return myself; }
/** * Sets a catch all escalation definition. * * @return the builder object */ public B escalation() { EscalationEventDefinition escalationEventDefinition = createInstance(EscalationEventDefinition.class); element.getEventDefinitions().add(escalationEventDefinition); return myself; }
public StartEventBuilder startEvent(String id) { StartEvent start = createChild(StartEvent.class, id); BpmnShape startShape = createBpmnShape(start); BpmnShape subProcessShape = findBpmnShape(getElement()); if (subProcessShape != null) { Bounds subProcessBounds = subProcessShape.getBounds(); Bounds startBounds = startShape.getBounds(); double subProcessX = subProcessBounds.getX(); double subProcessY = subProcessBounds.getY(); double subProcessHeight = subProcessBounds.getHeight(); double startHeight = startBounds.getHeight(); startBounds.setX(subProcessX + SPACE); startBounds.setY(subProcessY + subProcessHeight / 2 - startHeight / 2); } return start.builder(); } }
/** * @deprecated use camundaAsyncBefore(isCamundaAsyncBefore) instead. * * Sets the camunda async attribute. * * @param isCamundaAsync the async state of the task * @return the builder object */ @Deprecated public B camundaAsync(boolean isCamundaAsync) { element.setCamundaAsyncBefore(isCamundaAsync); return myself; }
/** * Sets whether the start event is interrupting or not. */ public B interrupting(boolean interrupting) { element.setInterrupting(interrupting); return myself; }
/** * Sets the camunda initiator attribute. * * @param camundaInitiator the initiator to set * @return the builder object */ public B camundaInitiator(String camundaInitiator) { element.setCamundaInitiator(camundaInitiator); return myself; }
/** * Sets the camunda form key attribute. * * @param camundaFormKey the form key to set * @return the builder object */ public B camundaFormKey(String camundaFormKey) { element.setCamundaFormKey(camundaFormKey); return myself; }
/** * Sets the camunda form handler class attribute. * * @param camundaFormHandlerClass the class name of the form handler * @return the builder object */ public B camundaFormHandlerClass(String camundaFormHandlerClass) { element.setCamundaFormHandlerClass(camundaFormHandlerClass); return myself; }
/** * Sets an escalation definition for the given escalation code. If already an escalation * with this code exists it will be used, otherwise a new escalation is created. * * @param escalationCode the code of the escalation * @return the builder object */ public B escalation(String escalationCode) { EscalationEventDefinition escalationEventDefinition = createEscalationEventDefinition(escalationCode); element.getEventDefinitions().add(escalationEventDefinition); return myself; }