org.camunda.bpm.model.bpmn.builder
Class AbstractStartEventBuilder<B extends AbstractStartEventBuilder<B>>

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>
                  extended by org.camunda.bpm.model.bpmn.builder.AbstractEventBuilder<B,E>
                      extended by org.camunda.bpm.model.bpmn.builder.AbstractCatchEventBuilder<B,StartEvent>
                          extended by org.camunda.bpm.model.bpmn.builder.AbstractStartEventBuilder<B>
Direct Known Subclasses:
StartEventBuilder

public abstract class AbstractStartEventBuilder<B extends AbstractStartEventBuilder<B>>
extends AbstractCatchEventBuilder<B,StartEvent>

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
protected AbstractStartEventBuilder(BpmnModelInstance modelInstance, StartEvent element, Class<?> selfType)
           
 
Method Summary
 B camundaAsync()
          Deprecated. use camundaAsyncBefore() instead. Sets the camunda async attribute to true.
 B camundaAsync(boolean isCamundaAsync)
          Deprecated. use camundaAsyncBefore(isCamundaAsyncBefore) instead. Sets the camunda async attribute.
 CamundaStartEventFormFieldBuilder camundaFormField()
          Creates a new camunda form field extension element.
 B camundaFormHandlerClass(String camundaFormHandlerClass)
          Sets the camunda form handler class attribute.
 B camundaFormKey(String camundaFormKey)
          Sets the camunda form key attribute.
 B camundaInitiator(String camundaInitiator)
          Sets the camunda initiator attribute.
 B compensation()
          Sets a catch compensation definition.
 B error()
          Sets a catch all error definition.
 B error(String errorCode)
          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(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(String escalationCode)
          Sets an escalation definition for the given escalation code.
 B interrupting(boolean interrupting)
          Sets whether the start event is interrupting or not.
 
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, 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
 

Constructor Detail

AbstractStartEventBuilder

protected AbstractStartEventBuilder(BpmnModelInstance modelInstance,
                                    StartEvent element,
                                    Class<?> selfType)
Method Detail

camundaAsync

@Deprecated
public B camundaAsync()
Deprecated. use camundaAsyncBefore() instead. Sets the camunda async attribute to true.

Returns:
the builder object

camundaAsync

@Deprecated
public B camundaAsync(boolean isCamundaAsync)
Deprecated. use camundaAsyncBefore(isCamundaAsyncBefore) instead. Sets the camunda async attribute.

Parameters:
isCamundaAsync - the async state of the task
Returns:
the builder object

camundaFormHandlerClass

public B camundaFormHandlerClass(String camundaFormHandlerClass)
Sets the camunda form handler class attribute.

Parameters:
camundaFormHandlerClass - the class name of the form handler
Returns:
the builder object

camundaFormKey

public B camundaFormKey(String camundaFormKey)
Sets the camunda form key attribute.

Parameters:
camundaFormKey - the form key to set
Returns:
the builder object

camundaInitiator

public B camundaInitiator(String camundaInitiator)
Sets the camunda initiator attribute.

Parameters:
camundaInitiator - the initiator to set
Returns:
the builder object

camundaFormField

public CamundaStartEventFormFieldBuilder camundaFormField()
Creates a new camunda form field extension element.

Returns:
the builder object

error

public B error()
Sets a catch all error definition.

Returns:
the builder object

error

public B error(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

errorEventDefinition

public ErrorEventDefinitionBuilder errorEventDefinition(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(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

compensation

public B compensation()
Sets a catch compensation definition.

Returns:
the builder object

interrupting

public B interrupting(boolean interrupting)
Sets whether the start event is interrupting or not.



Copyright © 2017 camunda services GmbH. All rights reserved.