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, java.lang.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, java.lang.Class<?> selfType)
-
-
Method Detail
-
condition
public B condition(java.lang.String name, java.lang.String condition)
-
connectTarget
protected void connectTarget(FlowNode target)
-
connectTargetWithSequenceFlow
protected void connectTargetWithSequenceFlow(FlowNode target)
-
connectTargetWithAssociation
protected void connectTargetWithAssociation(FlowNode target)
-
compensationDone
public AbstractFlowNodeBuilder compensationDone()
-
sequenceFlowId
public B sequenceFlowId(java.lang.String sequenceFlowId)
-
createTarget
protected <T extends FlowNode> T createTarget(java.lang.Class<T> typeClass, java.lang.String identifier)
-
createTargetBuilder
protected <T extends AbstractFlowNodeBuilder,F extends FlowNode> T createTargetBuilder(java.lang.Class<F> typeClass)
-
createTargetBuilder
protected <T extends AbstractFlowNodeBuilder,F extends FlowNode> T createTargetBuilder(java.lang.Class<F> typeClass, java.lang.String id)
-
serviceTask
public ServiceTaskBuilder serviceTask()
-
serviceTask
public ServiceTaskBuilder serviceTask(java.lang.String id)
-
sendTask
public SendTaskBuilder sendTask()
-
sendTask
public SendTaskBuilder sendTask(java.lang.String id)
-
userTask
public UserTaskBuilder userTask()
-
userTask
public UserTaskBuilder userTask(java.lang.String id)
-
businessRuleTask
public BusinessRuleTaskBuilder businessRuleTask()
-
businessRuleTask
public BusinessRuleTaskBuilder businessRuleTask(java.lang.String id)
-
scriptTask
public ScriptTaskBuilder scriptTask()
-
scriptTask
public ScriptTaskBuilder scriptTask(java.lang.String id)
-
receiveTask
public ReceiveTaskBuilder receiveTask()
-
receiveTask
public ReceiveTaskBuilder receiveTask(java.lang.String id)
-
manualTask
public ManualTaskBuilder manualTask()
-
manualTask
public ManualTaskBuilder manualTask(java.lang.String id)
-
endEvent
public EndEventBuilder endEvent()
-
endEvent
public EndEventBuilder endEvent(java.lang.String id)
-
parallelGateway
public ParallelGatewayBuilder parallelGateway()
-
parallelGateway
public ParallelGatewayBuilder parallelGateway(java.lang.String id)
-
exclusiveGateway
public ExclusiveGatewayBuilder exclusiveGateway()
-
inclusiveGateway
public InclusiveGatewayBuilder inclusiveGateway()
-
eventBasedGateway
public EventBasedGatewayBuilder eventBasedGateway()
-
exclusiveGateway
public ExclusiveGatewayBuilder exclusiveGateway(java.lang.String id)
-
inclusiveGateway
public InclusiveGatewayBuilder inclusiveGateway(java.lang.String id)
-
intermediateCatchEvent
public IntermediateCatchEventBuilder intermediateCatchEvent()
-
intermediateCatchEvent
public IntermediateCatchEventBuilder intermediateCatchEvent(java.lang.String id)
-
intermediateThrowEvent
public IntermediateThrowEventBuilder intermediateThrowEvent()
-
intermediateThrowEvent
public IntermediateThrowEventBuilder intermediateThrowEvent(java.lang.String id)
-
callActivity
public CallActivityBuilder callActivity()
-
callActivity
public CallActivityBuilder callActivity(java.lang.String id)
-
subProcess
public SubProcessBuilder subProcess()
-
subProcess
public SubProcessBuilder subProcess(java.lang.String id)
-
transaction
public TransactionBuilder transaction()
-
transaction
public TransactionBuilder transaction(java.lang.String id)
-
findLastGateway
public Gateway findLastGateway()
-
moveToLastGateway
public AbstractGatewayBuilder moveToLastGateway()
-
moveToNode
public AbstractFlowNodeBuilder moveToNode(java.lang.String identifier)
-
moveToActivity
public <T extends AbstractActivityBuilder> T moveToActivity(java.lang.String identifier)
-
connectTo
public AbstractFlowNodeBuilder connectTo(java.lang.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
-
camundaJobPriority
public B camundaJobPriority(java.lang.String jobPriority)
-
camundaFailedJobRetryTimeCycle
public B camundaFailedJobRetryTimeCycle(java.lang.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(java.lang.String eventName, java.lang.Class listenerClass)
-
camundaExecutionListenerClass
public B camundaExecutionListenerClass(java.lang.String eventName, java.lang.String fullQualifiedClassName)
-
camundaExecutionListenerExpression
public B camundaExecutionListenerExpression(java.lang.String eventName, java.lang.String expression)
-
camundaExecutionListenerDelegateExpression
public B camundaExecutionListenerDelegateExpression(java.lang.String eventName, java.lang.String delegateExpression)
-
compensationStart
public B compensationStart()
-
isBoundaryEventWithStartedCompensation
protected boolean isBoundaryEventWithStartedCompensation()
-
isCompensationHandler
protected boolean isCompensationHandler()
-
-