org.camunda.bpm.model.bpmn.builder
Class AbstractBaseElementBuilder<B extends AbstractBaseElementBuilder<B,E>,E extends BaseElement>

java.lang.Object
  extended by org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
      extended by 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
static double SPACE
           
 
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
 
Constructor Summary
protected AbstractBaseElementBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
           
 
Method Summary
 B addExtensionElement(BpmnModelElementInstance extensionElement)
          Add an extension element to the element.
 BpmnEdge createBpmnEdge(SequenceFlow sequenceFlow)
          Deprecated. use createEdge(BaseElement) instead
 BpmnShape createBpmnShape(FlowNode node)
           
protected
<T extends BpmnModelElementInstance>
T
createChild(BpmnModelElementInstance parent, Class<T> typeClass)
           
protected
<T extends BaseElement>
T
createChild(BpmnModelElementInstance parent, Class<T> typeClass, String identifier)
           
protected
<T extends BpmnModelElementInstance>
T
createChild(Class<T> typeClass)
           
protected
<T extends BaseElement>
T
createChild(Class<T> typeClass, String identifier)
           
protected  CompensateEventDefinition createCompensateEventDefinition()
           
 BpmnEdge createEdge(BaseElement baseElement)
           
protected  ErrorEventDefinition createEmptyErrorEventDefinition()
           
protected  MessageEventDefinition createEmptyMessageEventDefinition()
           
protected  ErrorEventDefinition createErrorEventDefinition(String errorCode)
           
protected  EscalationEventDefinition createEscalationEventDefinition(String escalationCode)
           
protected
<T extends BpmnModelElementInstance>
T
createInstance(Class<T> typeClass)
           
protected
<T extends BaseElement>
T
createInstance(Class<T> typeClass, String identifier)
           
protected  MessageEventDefinition createMessageEventDefinition(String messageName)
           
protected
<T extends BpmnModelElementInstance>
T
createSibling(Class<T> typeClass)
           
protected
<T extends BaseElement>
T
createSibling(Class<T> typeClass, String identifier)
           
protected  SignalEventDefinition createSignalEventDefinition(String signalName)
           
protected  BpmnEdge findBpmnEdge(BaseElement sequenceFlow)
           
protected  BpmnPlane findBpmnPlane()
           
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  Signal findSignalForName(String signalName)
           
protected
<T extends BpmnModelElementInstance>
T
getCreateSingleChild(BpmnModelElementInstance parent, Class<T> typeClass)
           
protected
<T extends BpmnModelElementInstance>
T
getCreateSingleChild(Class<T> typeClass)
           
protected
<T extends BpmnModelElementInstance>
T
getCreateSingleExtensionElement(Class<T> typeClass)
           
 B id(String identifier)
          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, transactionDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE

public static final double SPACE
See Also:
Constant Field Values
Constructor Detail

AbstractBaseElementBuilder

protected AbstractBaseElementBuilder(BpmnModelInstance modelInstance,
                                     E element,
                                     Class<?> selfType)
Method Detail

createInstance

protected <T extends BpmnModelElementInstance> T createInstance(Class<T> typeClass)

createInstance

protected <T extends BaseElement> T createInstance(Class<T> typeClass,
                                                   String identifier)

createChild

protected <T extends BpmnModelElementInstance> T createChild(Class<T> typeClass)

createChild

protected <T extends BaseElement> T createChild(Class<T> typeClass,
                                                String identifier)

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

protected <T extends BpmnModelElementInstance> T createSibling(Class<T> typeClass)

createSibling

protected <T extends BaseElement> T createSibling(Class<T> typeClass,
                                                  String identifier)

getCreateSingleChild

protected <T extends BpmnModelElementInstance> T getCreateSingleChild(Class<T> typeClass)

getCreateSingleChild

protected <T extends BpmnModelElementInstance> T getCreateSingleChild(BpmnModelElementInstance parent,
                                                                      Class<T> typeClass)

getCreateSingleExtensionElement

protected <T extends BpmnModelElementInstance> T getCreateSingleExtensionElement(Class<T> typeClass)

findMessageForName

protected Message findMessageForName(String messageName)

createMessageEventDefinition

protected MessageEventDefinition createMessageEventDefinition(String messageName)

createEmptyMessageEventDefinition

protected MessageEventDefinition createEmptyMessageEventDefinition()

findSignalForName

protected Signal findSignalForName(String signalName)

createSignalEventDefinition

protected SignalEventDefinition createSignalEventDefinition(String signalName)

findErrorDefinitionForCode

protected ErrorEventDefinition findErrorDefinitionForCode(String errorCode)

findErrorForNameAndCode

protected Error findErrorForNameAndCode(String errorCode)

createEmptyErrorEventDefinition

protected ErrorEventDefinition createEmptyErrorEventDefinition()

createErrorEventDefinition

protected ErrorEventDefinition createErrorEventDefinition(String errorCode)

findEscalationForCode

protected Escalation findEscalationForCode(String escalationCode)

createEscalationEventDefinition

protected EscalationEventDefinition createEscalationEventDefinition(String escalationCode)

createCompensateEventDefinition

protected CompensateEventDefinition createCompensateEventDefinition()

id

public B id(String identifier)
Sets the identifier of the element.

Parameters:
identifier - the identifier to set
Returns:
the builder object

addExtensionElement

public B addExtensionElement(BpmnModelElementInstance extensionElement)
Add an extension element to the element.

Parameters:
extensionElement - the extension element to add
Returns:
the builder object

createBpmnShape

public BpmnShape createBpmnShape(FlowNode node)

setCoordinates

protected void setCoordinates(BpmnShape shape)

createBpmnEdge

@Deprecated
public BpmnEdge createBpmnEdge(SequenceFlow sequenceFlow)
Deprecated. use createEdge(BaseElement) instead


createEdge

public BpmnEdge createEdge(BaseElement baseElement)

setWaypoints

protected void setWaypoints(BpmnEdge edge)

setWaypointsWithSourceAndTarget

protected void setWaypointsWithSourceAndTarget(BpmnEdge edge,
                                               FlowNode edgeSource,
                                               FlowNode edgeTarget)

findBpmnPlane

protected BpmnPlane findBpmnPlane()

findBpmnShape

protected BpmnShape findBpmnShape(BaseElement node)

findBpmnEdge

protected BpmnEdge findBpmnEdge(BaseElement sequenceFlow)

resizeSubProcess

protected void resizeSubProcess(BpmnShape innerShape)


Copyright © 2017 camunda services GmbH. All rights reserved.