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
ConstructorsModifierConstructorDescriptionprotected
AbstractBaseElementBuilder
(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 String
asZeebeExpression
(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 CompensateEventDefinition
createEdge
(BaseElement baseElement) protected ErrorEventDefinition
protected EscalationEventDefinition
protected MessageEventDefinition
protected SignalEventDefinition
protected ErrorEventDefinition
createErrorEventDefinition
(String errorCode) protected EscalationEventDefinition
createEscalationEventDefinition
(String escalationCode) protected <T extends BpmnModelElementInstance>
TcreateInstance
(Class<T> typeClass) protected <T extends BaseElement>
TcreateInstance
(Class<T> typeClass, String identifier) protected Message
protected MessageEventDefinition
createMessageEventDefinition
(String messageName) protected <T extends BpmnModelElementInstance>
TcreateSibling
(Class<T> typeClass) protected <T extends BaseElement>
TcreateSibling
(Class<T> typeClass, String identifier) protected Signal
protected SignalEventDefinition
createSignalEventDefinition
(String signalName) protected ZeebeUserTaskForm
protected BpmnEdge
findBpmnEdge
(BaseElement sequenceFlow) protected BpmnPlane
protected BpmnShape
findBpmnShape
(BaseElement node) protected ErrorEventDefinition
findErrorDefinitionForCode
(String errorCode) protected Error
findErrorForNameAndCode
(String errorCode) protected Escalation
findEscalationForCode
(String escalationCode) protected Message
findMessageForName
(String messageName) protected Process
protected Signal
findSignalForName
(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 void
resizeBpmnShape
(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 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
-