Class AbstractBoundaryEventBuilder<B extends AbstractBoundaryEventBuilder<B>>
- java.lang.Object
-
- org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractFlowElementBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractFlowNodeBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractEventBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractCatchEventBuilder<B,BoundaryEvent>
-
- org.camunda.bpm.model.bpmn.builder.AbstractBoundaryEventBuilder<B>
-
- Direct Known Subclasses:
BoundaryEventBuilder
public abstract class AbstractBoundaryEventBuilder<B extends AbstractBoundaryEventBuilder<B>> extends AbstractCatchEventBuilder<B,BoundaryEvent>
- Author:
- Sebastian Menski
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractFlowNodeBuilder
compensateBoundaryEvent, compensationStarted
-
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder
SPACE
-
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBoundaryEventBuilder(BpmnModelInstance modelInstance, BoundaryEvent element, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
cancelActivity(java.lang.Boolean cancelActivity)
Set if the boundary event cancels the attached activity.B
error()
Sets a catch all error definition.B
error(java.lang.String errorCode)
Sets an error definition for the given error code.B
error(java.lang.String errorCode, java.lang.String errorMessage)
Sets an error definition for the given error code.ErrorEventDefinitionBuilder
errorEventDefinition()
Creates an error event definition and returns a builder for the error event definition.ErrorEventDefinitionBuilder
errorEventDefinition(java.lang.String id)
Creates an error event definition with an unique id and returns a builder for the error event definition.B
escalation()
Sets a catch all escalation definition.B
escalation(java.lang.String escalationCode)
Sets an escalation definition for the given escalation code.protected void
setCoordinates(BpmnShape shape)
protected void
setWaypointsWithSourceAndTarget(BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget)
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractCatchEventBuilder
compensateEventDefinition, compensateEventDefinition, condition, conditionalEventDefinition, conditionalEventDefinition, message, parallelMultiple, signal, timerWithCycle, timerWithDate, timerWithDuration
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractEventBuilder
camundaInputParameter, camundaOutputParameter
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractFlowNodeBuilder
businessRuleTask, businessRuleTask, callActivity, callActivity, camundaAsyncAfter, camundaAsyncAfter, camundaAsyncBefore, camundaAsyncBefore, camundaExclusive, camundaExecutionListenerClass, camundaExecutionListenerClass, camundaExecutionListenerDelegateExpression, camundaExecutionListenerExpression, camundaFailedJobRetryTimeCycle, camundaJobPriority, compensationDone, compensationStart, condition, connectTarget, connectTargetWithAssociation, connectTargetWithSequenceFlow, connectTo, createTarget, createTargetBuilder, createTargetBuilder, endEvent, endEvent, eventBasedGateway, exclusiveGateway, exclusiveGateway, findLastGateway, inclusiveGateway, inclusiveGateway, intermediateCatchEvent, intermediateCatchEvent, intermediateThrowEvent, intermediateThrowEvent, isBoundaryEventWithStartedCompensation, isCompensationHandler, manualTask, manualTask, moveToActivity, moveToLastGateway, moveToNode, notCamundaExclusive, parallelGateway, parallelGateway, receiveTask, receiveTask, scriptTask, scriptTask, sendTask, sendTask, sequenceFlowId, serviceTask, serviceTask, subProcess, subProcess, transaction, transaction, userTask, userTask
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractFlowElementBuilder
name
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder
addExtensionElement, createBpmnEdge, createBpmnShape, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEdge, createEmptyErrorEventDefinition, createEmptyMessageEventDefinition, createErrorEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, createTimeCycle, createTimeDate, createTimeDuration, documentation, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement, id, resizeSubProcess, setWaypoints
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
-
-
-
Constructor Detail
-
AbstractBoundaryEventBuilder
protected AbstractBoundaryEventBuilder(BpmnModelInstance modelInstance, BoundaryEvent element, java.lang.Class<?> selfType)
-
-
Method Detail
-
cancelActivity
public B cancelActivity(java.lang.Boolean cancelActivity)
Set if the boundary event cancels the attached activity.- Parameters:
cancelActivity
- true if the boundary event cancels the activiy, false otherwise- Returns:
- the builder object
-
error
public B error()
Sets a catch all error definition.- Returns:
- the builder object
-
error
public B error(java.lang.String errorCode)
Sets an error definition for the given error code. If already an error with this code exists it will be used, otherwise a new error is created.- Parameters:
errorCode
- the code of the error- Returns:
- the builder object
-
error
public B error(java.lang.String errorCode, java.lang.String errorMessage)
Sets an error definition for the given error code. If already an error with this code exists it will be used, otherwise a new error with the given error message is created.- Parameters:
errorCode
- the code of the errorerrorMessage
- the error message that is used when a new error needs to be created- Returns:
- the builder object
-
errorEventDefinition
public ErrorEventDefinitionBuilder errorEventDefinition(java.lang.String id)
Creates an error event definition with an unique id and returns a builder for the error event definition.- Returns:
- the error event definition builder object
-
errorEventDefinition
public ErrorEventDefinitionBuilder errorEventDefinition()
Creates an error event definition and returns a builder for the error event definition.- Returns:
- the error event definition builder object
-
escalation
public B escalation()
Sets a catch all escalation definition.- Returns:
- the builder object
-
escalation
public B escalation(java.lang.String escalationCode)
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.- Parameters:
escalationCode
- the code of the escalation- Returns:
- the builder object
-
setCoordinates
protected void setCoordinates(BpmnShape shape)
- Overrides:
setCoordinates
in classAbstractBaseElementBuilder<B extends AbstractBoundaryEventBuilder<B>,BoundaryEvent>
-
setWaypointsWithSourceAndTarget
protected void setWaypointsWithSourceAndTarget(BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget)
- Overrides:
setWaypointsWithSourceAndTarget
in classAbstractBaseElementBuilder<B extends AbstractBoundaryEventBuilder<B>,BoundaryEvent>
-
-