org.camunda.bpm.model.bpmn.builder
Class AbstractBoundaryEventBuilder<B extends AbstractBoundaryEventBuilder<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,BoundaryEvent>
                          extended by 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.AbstractBpmnModelElementBuilder
element, modelInstance, myself
 
Constructor Summary
protected AbstractBoundaryEventBuilder(BpmnModelInstance modelInstance, BoundaryEvent element, Class<?> selfType)
           
 
Method Summary
 B cancelActivity(Boolean cancelActivity)
          Set if the boundary event cancels the attached activity.
 B error()
          Sets a catch all error definition.
 B error(String errorCode)
          Sets an error definition for the given error code.
 B escalation()
          Sets a catch all escalation definition.
 B escalation(String escalationCode)
          Sets an escalation definition for the given escalation code.
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractCatchEventBuilder
compensateEventDefinition, compensateEventDefinition, message, parallelMultiple, signal, timerWithCycle, timerWithDate, timerWithDuration
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractFlowNodeBuilder
businessRuleTask, businessRuleTask, callActivity, callActivity, camundaAsyncAfter, camundaAsyncAfter, camundaAsyncBefore, camundaAsyncBefore, camundaExclusive, camundaExecutionListenerClass, camundaExecutionListenerDelegateExpression, camundaExecutionListenerExpression, camundaFailedJobRetryTimeCycle, camundaJobPriority, condition, connectTo, endEvent, endEvent, eventBasedGateway, exclusiveGateway, exclusiveGateway, findLastGateway, inclusiveGateway, inclusiveGateway, intermediateCatchEvent, intermediateCatchEvent, intermediateThrowEvent, intermediateThrowEvent, 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, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEmptyMessageEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement, id
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, subProcessDone, transactionDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBoundaryEventBuilder

protected AbstractBoundaryEventBuilder(BpmnModelInstance modelInstance,
                                       BoundaryEvent element,
                                       Class<?> selfType)
Method Detail

cancelActivity

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

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


Copyright © 2016 camunda services GmbH. All rights reserved.