org.camunda.bpm.model.bpmn.builder
Class AbstractFlowNodeBuilder<B extends AbstractFlowNodeBuilder<B,E>,E extends FlowNode>

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>
          extended by org.camunda.bpm.model.bpmn.builder.AbstractFlowElementBuilder<B,E>
              extended by 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
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
protected AbstractFlowNodeBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
           
 
Method Summary
 BusinessRuleTaskBuilder businessRuleTask()
           
 BusinessRuleTaskBuilder businessRuleTask(String id)
           
 CallActivityBuilder callActivity()
           
 CallActivityBuilder callActivity(String id)
           
 B camundaAsyncAfter()
          Sets the Camunda asyncAfter attribute to true.
 B camundaAsyncAfter(boolean asyncAfter)
          Sets the Camunda asyncAfter attribute for the build flow node.
 B camundaAsyncBefore()
          Sets the Camunda asyncBefore attribute to true.
 B camundaAsyncBefore(boolean asyncBefore)
          Sets the Camunda AsyncBefore attribute for the build flow node.
 B camundaExclusive(boolean exclusive)
          Sets the camunda exclusive attribute for the build flow node.
 B camundaExecutionListenerClass(String eventName, Class listenerClass)
           
 B camundaExecutionListenerClass(String eventName, String fullQualifiedClassName)
           
 B camundaExecutionListenerDelegateExpression(String eventName, String delegateExpression)
           
 B camundaExecutionListenerExpression(String eventName, String expression)
           
 B camundaFailedJobRetryTimeCycle(String retryTimeCycle)
          Sets the camunda failedJobRetryTimeCycle attribute for the build flow node.
 B camundaJobPriority(String jobPriority)
           
 AbstractFlowNodeBuilder compensationDone()
           
 B compensationStart()
           
 B condition(String name, String condition)
           
protected  void connectTarget(FlowNode target)
           
protected  void connectTargetWithAssociation(FlowNode target)
           
protected  void connectTargetWithSequenceFlow(FlowNode target)
           
 AbstractFlowNodeBuilder connectTo(String identifier)
           
protected
<T extends FlowNode>
T
createTarget(Class<T> typeClass, String identifier)
           
protected
<T extends AbstractFlowNodeBuilder,F extends FlowNode>
T
createTargetBuilder(Class<F> typeClass)
           
protected
<T extends AbstractFlowNodeBuilder,F extends FlowNode>
T
createTargetBuilder(Class<F> typeClass, String id)
           
 EndEventBuilder endEvent()
           
 EndEventBuilder endEvent(String id)
           
 EventBasedGatewayBuilder eventBasedGateway()
           
 ExclusiveGatewayBuilder exclusiveGateway()
           
 ExclusiveGatewayBuilder exclusiveGateway(String id)
           
 Gateway findLastGateway()
           
 InclusiveGatewayBuilder inclusiveGateway()
           
 InclusiveGatewayBuilder inclusiveGateway(String id)
           
 IntermediateCatchEventBuilder intermediateCatchEvent()
           
 IntermediateCatchEventBuilder intermediateCatchEvent(String id)
           
 IntermediateThrowEventBuilder intermediateThrowEvent()
           
 IntermediateThrowEventBuilder intermediateThrowEvent(String id)
           
protected  boolean isBoundaryEventWithStartedCompensation()
           
protected  boolean isCompensationHandler()
           
 ManualTaskBuilder manualTask()
           
 ManualTaskBuilder manualTask(String id)
           
<T extends AbstractActivityBuilder>
T
moveToActivity(String identifier)
           
 AbstractGatewayBuilder moveToLastGateway()
           
 AbstractFlowNodeBuilder moveToNode(String identifier)
           
 B notCamundaExclusive()
          Sets the Camunda exclusive attribute to true.
 ParallelGatewayBuilder parallelGateway()
           
 ParallelGatewayBuilder parallelGateway(String id)
           
 ReceiveTaskBuilder receiveTask()
           
 ReceiveTaskBuilder receiveTask(String id)
           
 ScriptTaskBuilder scriptTask()
           
 ScriptTaskBuilder scriptTask(String id)
           
 SendTaskBuilder sendTask()
           
 SendTaskBuilder sendTask(String id)
           
 B sequenceFlowId(String sequenceFlowId)
           
 ServiceTaskBuilder serviceTask()
           
 ServiceTaskBuilder serviceTask(String id)
           
 SubProcessBuilder subProcess()
           
 SubProcessBuilder subProcess(String id)
           
 TransactionBuilder transaction()
           
 TransactionBuilder transaction(String id)
           
 UserTaskBuilder userTask()
           
 UserTaskBuilder userTask(String id)
           
 
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, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, 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, transactionDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compensationStarted

protected boolean compensationStarted

compensateBoundaryEvent

protected BoundaryEvent compensateBoundaryEvent
Constructor Detail

AbstractFlowNodeBuilder

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

condition

public B condition(String name,
                   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(String sequenceFlowId)

createTarget

protected <T extends FlowNode> T createTarget(Class<T> typeClass,
                                              String identifier)

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

camundaJobPriority

public B camundaJobPriority(String jobPriority)

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()


Copyright © 2017 camunda services GmbH. All rights reserved.