Class AbstractFlowNodeBuilder<B extends AbstractFlowNodeBuilder<B,E>,E extends FlowNode>
- 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>
-
- Direct Known Subclasses:
AbstractActivityBuilder
,AbstractEventBuilder
,AbstractGatewayBuilder
public abstract class AbstractFlowNodeBuilder<B extends AbstractFlowNodeBuilder<B,E>,E extends FlowNode> extends AbstractFlowElementBuilder<B,E>
- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description protected BoundaryEvent
compensateBoundaryEvent
protected boolean
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
AbstractFlowNodeBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
-
Method Summary
-
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, setCoordinates, setWaypoints, setWaypointsWithSourceAndTarget
-
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
-
-
-
Field Detail
-
compensationStarted
protected boolean compensationStarted
-
compensateBoundaryEvent
protected BoundaryEvent compensateBoundaryEvent
-
-
Constructor Detail
-
AbstractFlowNodeBuilder
protected AbstractFlowNodeBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
-
-
Method Detail
-
connectTarget
protected void connectTarget(FlowNode target)
-
connectTargetWithSequenceFlow
protected void connectTargetWithSequenceFlow(FlowNode target)
-
connectTargetWithAssociation
protected void connectTargetWithAssociation(FlowNode target)
-
compensationDone
public AbstractFlowNodeBuilder compensationDone()
-
createTargetBuilder
protected <T extends AbstractFlowNodeBuilder,F extends FlowNode> T createTargetBuilder(Class<F> typeClass)
-
createTargetBuilder
protected <T extends AbstractFlowNodeBuilder,F extends FlowNode> T createTargetBuilder(Class<F> typeClass, String id)
-
serviceTask
public ServiceTaskBuilder serviceTask()
-
serviceTask
public ServiceTaskBuilder serviceTask(String id)
-
sendTask
public SendTaskBuilder sendTask()
-
sendTask
public SendTaskBuilder sendTask(String id)
-
userTask
public UserTaskBuilder userTask()
-
userTask
public UserTaskBuilder userTask(String id)
-
businessRuleTask
public BusinessRuleTaskBuilder businessRuleTask()
-
businessRuleTask
public BusinessRuleTaskBuilder businessRuleTask(String id)
-
scriptTask
public ScriptTaskBuilder scriptTask()
-
scriptTask
public ScriptTaskBuilder scriptTask(String id)
-
receiveTask
public ReceiveTaskBuilder receiveTask()
-
receiveTask
public ReceiveTaskBuilder receiveTask(String id)
-
manualTask
public ManualTaskBuilder manualTask()
-
manualTask
public ManualTaskBuilder manualTask(String id)
-
endEvent
public EndEventBuilder endEvent()
-
endEvent
public EndEventBuilder endEvent(String id)
-
parallelGateway
public ParallelGatewayBuilder parallelGateway()
-
parallelGateway
public ParallelGatewayBuilder parallelGateway(String id)
-
exclusiveGateway
public ExclusiveGatewayBuilder exclusiveGateway()
-
inclusiveGateway
public InclusiveGatewayBuilder inclusiveGateway()
-
eventBasedGateway
public EventBasedGatewayBuilder eventBasedGateway()
-
exclusiveGateway
public ExclusiveGatewayBuilder exclusiveGateway(String id)
-
inclusiveGateway
public InclusiveGatewayBuilder inclusiveGateway(String id)
-
intermediateCatchEvent
public IntermediateCatchEventBuilder intermediateCatchEvent()
-
intermediateCatchEvent
public IntermediateCatchEventBuilder intermediateCatchEvent(String id)
-
intermediateThrowEvent
public IntermediateThrowEventBuilder intermediateThrowEvent()
-
intermediateThrowEvent
public IntermediateThrowEventBuilder intermediateThrowEvent(String id)
-
callActivity
public CallActivityBuilder callActivity()
-
callActivity
public CallActivityBuilder callActivity(String id)
-
subProcess
public SubProcessBuilder subProcess()
-
subProcess
public SubProcessBuilder subProcess(String id)
-
transaction
public TransactionBuilder transaction()
-
transaction
public TransactionBuilder transaction(String id)
-
findLastGateway
public Gateway findLastGateway()
-
moveToLastGateway
public AbstractGatewayBuilder moveToLastGateway()
-
moveToNode
public AbstractFlowNodeBuilder moveToNode(String identifier)
-
moveToActivity
public <T extends AbstractActivityBuilder> T moveToActivity(String identifier)
-
connectTo
public AbstractFlowNodeBuilder connectTo(String identifier)
-
camundaAsyncBefore
public B camundaAsyncBefore(boolean asyncBefore)
Sets the Camunda AsyncBefore attribute for the build flow node.- Parameters:
asyncBefore
- boolean value to set- Returns:
- the builder object
-
camundaAsyncBefore
public B camundaAsyncBefore()
Sets the Camunda asyncBefore attribute to true.- Returns:
- the builder object
-
camundaAsyncAfter
public B camundaAsyncAfter(boolean asyncAfter)
Sets the Camunda asyncAfter attribute for the build flow node.- Parameters:
asyncAfter
- boolean value to set- Returns:
- the builder object
-
camundaAsyncAfter
public B camundaAsyncAfter()
Sets the Camunda asyncAfter attribute to true.- Returns:
- the builder object
-
notCamundaExclusive
public B notCamundaExclusive()
Sets the Camunda exclusive attribute to true.- Returns:
- the builder object
-
camundaExclusive
public B camundaExclusive(boolean exclusive)
Sets the camunda exclusive attribute for the build flow node.- Parameters:
exclusive
- boolean value to set- Returns:
- the builder object
-
camundaFailedJobRetryTimeCycle
public B camundaFailedJobRetryTimeCycle(String retryTimeCycle)
Sets the camunda failedJobRetryTimeCycle attribute for the build flow node.- Parameters:
retryTimeCycle
- the retry time cycle value to set- Returns:
- the builder object
-
camundaExecutionListenerClass
public B camundaExecutionListenerClass(String eventName, Class listenerClass)
-
camundaExecutionListenerClass
public B camundaExecutionListenerClass(String eventName, String fullQualifiedClassName)
-
camundaExecutionListenerExpression
public B camundaExecutionListenerExpression(String eventName, String expression)
-
camundaExecutionListenerDelegateExpression
public B camundaExecutionListenerDelegateExpression(String eventName, String delegateExpression)
-
compensationStart
public B compensationStart()
-
isBoundaryEventWithStartedCompensation
protected boolean isBoundaryEventWithStartedCompensation()
-
isCompensationHandler
protected boolean isCompensationHandler()
-
-