Class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement>
java.lang.Object
io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
- Direct Known Subclasses:
AbstractFlowElementBuilder,AbstractMultiInstanceLoopCharacteristicsBuilder,AbstractRootElementBuilder,MessageBuilder,PublishMessageBuilder,SignalBuilder
public abstract class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement>
extends AbstractBpmnModelElementBuilder<B,E>
- Author:
- Sebastian Menski
-
Field Summary
FieldsFields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBaseElementBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionaddExtensionElement(BpmnModelElementInstance extensionElement) Add an extension element to the element.<T extends BpmnModelElementInstance>
BaddExtensionElement(Class<T> extensionClass, Consumer<T> builder) protected StringasZeebeExpression(String expression) createBpmnShape(FlowNode node) protected <T extends BpmnModelElementInstance>
TcreateChild(BpmnModelElementInstance parent, Class<T> typeClass) protected <T extends BaseElement>
TcreateChild(BpmnModelElementInstance parent, Class<T> typeClass, String identifier) protected <T extends BpmnModelElementInstance>
TcreateChild(Class<T> typeClass) protected <T extends BaseElement>
TcreateChild(Class<T> typeClass, String identifier) protected CompensateEventDefinitioncreateEdge(BaseElement baseElement) protected ErrorEventDefinitionprotected EscalationEventDefinitionprotected MessageEventDefinitionprotected SignalEventDefinitionprotected ErrorEventDefinitioncreateErrorEventDefinition(String errorCode) protected EscalationEventDefinitioncreateEscalationEventDefinition(String escalationCode) protected <T extends BpmnModelElementInstance>
TcreateInstance(Class<T> typeClass) protected <T extends BaseElement>
TcreateInstance(Class<T> typeClass, String identifier) protected Messageprotected MessageEventDefinitioncreateMessageEventDefinition(String messageName) protected <T extends BpmnModelElementInstance>
TcreateSibling(Class<T> typeClass) protected <T extends BaseElement>
TcreateSibling(Class<T> typeClass, String identifier) protected Signalprotected SignalEventDefinitioncreateSignalEventDefinition(String signalName) protected ZeebeUserTaskFormprotected BpmnEdgefindBpmnEdge(BaseElement sequenceFlow) protected BpmnPlaneprotected BpmnShapefindBpmnShape(BaseElement node) protected ErrorEventDefinitionfindErrorDefinitionForCode(String errorCode) protected ErrorfindErrorForNameAndCode(String errorCode) protected EscalationfindEscalationForCode(String escalationCode) protected MessagefindMessageForName(String messageName) protected Processprotected SignalfindSignalForName(String signalName) protected <T extends BpmnModelElementInstance>
TgetCreateSingleChild(BpmnModelElementInstance parent, Class<T> typeClass) Provides a child element of the given type for which only 1 such child should exist.protected <T extends BpmnModelElementInstance>
TgetCreateSingleChild(Class<T> typeClass) protected <T extends BpmnModelElementInstance>
TgetCreateSingleExtensionElement(Class<T> typeClass) Provides the extension element of the given type for which only 1 such extension element should exist.Sets the identifier of the element.protected voidresizeBpmnShape(BpmnShape innerShape) protected voidsetCoordinates(BpmnShape shape) protected voidsetWaypoints(BpmnEdge edge) protected voidsetWaypointsWithSourceAndTarget(BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget) Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
documentation, done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
Field Details
-
SPACE
public static final double SPACE- See Also:
-
ZEEBE_EXPRESSION_FORMAT
- 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) Provides a child element of the given type for which only 1 such child should exist. This method makes sure it is created if it does not yet exist.- Parameters:
parent- the element that is the parent of the requested childtypeClass- the type of the requested child- Returns:
- the requested child
-
getCreateSingleExtensionElement
protected <T extends BpmnModelElementInstance> T getCreateSingleExtensionElement(Class<T> typeClass) Provides the extension element of the given type for which only 1 such extension element should exist. This method makes sure it is created if it does not yet exist. The specific element is a child of the extension elements of this element.- Parameters:
typeClass- the type of the requested extension element- Returns:
- the requested extension element
-
findMessageForName
-
createMessage
-
createMessageEventDefinition
-
createEmptyMessageEventDefinition
-
findSignalForName
-
createSignalEventDefinition
-
createSignal
-
createEmptySignalEventDefinition
-
findErrorDefinitionForCode
-
findErrorForNameAndCode
-
createEmptyErrorEventDefinition
-
createErrorEventDefinition
-
findEscalationForCode
-
createEmptyEscalationEventDefinition
-
createEscalationEventDefinition
-
createCompensateEventDefinition
-
findProcess
-
createZeebeUserTaskForm
-
id
Sets the identifier of the element.- Parameters:
identifier- the identifier 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
-
addExtensionElement
public <T extends BpmnModelElementInstance> B addExtensionElement(Class<T> extensionClass, Consumer<T> builder) -
asZeebeExpression
-
createBpmnShape
-
setCoordinates
-
createEdge
-
setWaypoints
-
setWaypointsWithSourceAndTarget
-
findBpmnPlane
-
findBpmnShape
-
findBpmnEdge
-
resizeBpmnShape
-