Class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement>
java.lang.Object
org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
- Direct Known Subclasses:
AbstractFlowElementBuilder
,AbstractMultiInstanceLoopCharacteristicsBuilder
,AbstractRootElementBuilder
public abstract class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement>
extends AbstractBpmnModelElementBuilder<B,E>
- Author:
- Sebastian Menski
-
Field Summary
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBaseElementBuilder
(BpmnModelInstance modelInstance, E element, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionaddExtensionElement
(BpmnModelElementInstance extensionElement) Add an extension element to the element.createBpmnEdge
(SequenceFlow sequenceFlow) Deprecated.createBpmnShape
(FlowNode node) protected <T extends BpmnModelElementInstance>
TcreateChild
(Class<T> typeClass) protected <T extends BaseElement>
TcreateChild
(Class<T> typeClass, String identifier) protected <T extends BpmnModelElementInstance>
TcreateChild
(BpmnModelElementInstance parent, Class<T> typeClass) protected <T extends BaseElement>
TcreateChild
(BpmnModelElementInstance parent, Class<T> typeClass, String identifier) protected CompensateEventDefinition
createEdge
(BaseElement baseElement) protected ErrorEventDefinition
protected MessageEventDefinition
protected ErrorEventDefinition
createErrorEventDefinition
(String errorCode) protected ErrorEventDefinition
createErrorEventDefinition
(String errorCode, String errorMessage) protected EscalationEventDefinition
createEscalationEventDefinition
(String escalationCode) protected <T extends BpmnModelElementInstance>
TcreateInstance
(Class<T> typeClass) protected <T extends BaseElement>
TcreateInstance
(Class<T> typeClass, String identifier) protected MessageEventDefinition
createMessageEventDefinition
(String messageName) protected <T extends BpmnModelElementInstance>
TcreateSibling
(Class<T> typeClass) protected <T extends BaseElement>
TcreateSibling
(Class<T> typeClass, String identifier) protected SignalEventDefinition
createSignalEventDefinition
(String signalName) protected TimerEventDefinition
createTimeCycle
(String timerCycle) protected TimerEventDefinition
createTimeDate
(String timerDate) protected TimerEventDefinition
createTimeDuration
(String timerDuration) documentation
(String documentation) Sets the documentation of the element.protected BpmnEdge
findBpmnEdge
(BaseElement sequenceFlow) protected BpmnPlane
protected BpmnShape
findBpmnShape
(BaseElement node) protected ErrorEventDefinition
findErrorDefinitionForCode
(String errorCode) protected Error
findErrorForNameAndCode
(String errorCode) protected Error
findErrorForNameAndCode
(String errorCode, String errorMessage) protected Escalation
findEscalationForCode
(String escalationCode) protected Message
findMessageForName
(String messageName) protected Signal
findSignalForName
(String signalName) protected <T extends BpmnModelElementInstance>
TgetCreateSingleChild
(Class<T> typeClass) protected <T extends BpmnModelElementInstance>
TgetCreateSingleChild
(BpmnModelElementInstance parent, Class<T> typeClass) protected <T extends BpmnModelElementInstance>
TgetCreateSingleExtensionElement
(Class<T> typeClass) Sets the identifier of the element.protected void
resizeSubProcess
(BpmnShape innerShape) protected void
setCoordinates
(BpmnShape shape) protected void
setWaypoints
(BpmnEdge edge) protected void
setWaypointsWithSourceAndTarget
(BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget) Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
Field Details
-
SPACE
public static final double SPACE- See Also:
-
-
Constructor Details
-
AbstractBaseElementBuilder
-
-
Method Details
-
createInstance
-
createInstance
-
createChild
-
createChild
-
createChild
protected <T extends BpmnModelElementInstance> T createChild(BpmnModelElementInstance parent, Class<T> typeClass) -
createChild
protected <T extends BaseElement> T createChild(BpmnModelElementInstance parent, Class<T> typeClass, String identifier) -
createSibling
-
createSibling
-
getCreateSingleChild
-
getCreateSingleChild
protected <T extends BpmnModelElementInstance> T getCreateSingleChild(BpmnModelElementInstance parent, Class<T> typeClass) -
getCreateSingleExtensionElement
protected <T extends BpmnModelElementInstance> T getCreateSingleExtensionElement(Class<T> typeClass) -
findMessageForName
-
createMessageEventDefinition
-
createEmptyMessageEventDefinition
-
findSignalForName
-
createSignalEventDefinition
-
findErrorDefinitionForCode
-
findErrorForNameAndCode
-
findErrorForNameAndCode
-
createEmptyErrorEventDefinition
-
createErrorEventDefinition
-
createErrorEventDefinition
-
findEscalationForCode
-
createEscalationEventDefinition
-
createCompensateEventDefinition
-
id
Sets the identifier of the element.- Parameters:
identifier
- the identifier to set- Returns:
- the builder object
-
documentation
Sets the documentation of the element.- Parameters:
documentation
- the documentation to set- Returns:
- the builder object
-
addExtensionElement
Add an extension element to the element.- Parameters:
extensionElement
- the extension element to add- Returns:
- the builder object
-
createBpmnShape
-
setCoordinates
-
createBpmnEdge
Deprecated.usecreateEdge(BaseElement)
instead -
createEdge
-
setWaypoints
-
setWaypointsWithSourceAndTarget
-
findBpmnPlane
-
findBpmnShape
-
findBpmnEdge
-
resizeSubProcess
-
createTimeCycle
-
createTimeDate
-
createTimeDuration
-
createEdge(BaseElement)
instead