org.camunda.bpm.model.bpmn.builder
Class AbstractErrorEventDefinitionBuilder<B extends AbstractErrorEventDefinitionBuilder<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.AbstractRootElementBuilder<B,ErrorEventDefinition>
              extended by org.camunda.bpm.model.bpmn.builder.AbstractErrorEventDefinitionBuilder<B>
Direct Known Subclasses:
ErrorEventDefinitionBuilder

public abstract class AbstractErrorEventDefinitionBuilder<B extends AbstractErrorEventDefinitionBuilder<B>>
extends AbstractRootElementBuilder<B,ErrorEventDefinition>

Author:
Deivarayan Azhagappan

Field Summary
 
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
AbstractErrorEventDefinitionBuilder(BpmnModelInstance modelInstance, ErrorEventDefinition element, Class<?> selfType)
           
 
Method Summary
 B error(String errorCode)
          Sets the error attribute with errorCode.
 B errorCodeVariable(String errorCodeVariable)
          Sets the error code variable attribute.
<T extends AbstractFlowNodeBuilder>
T
errorEventDefinitionDone()
          Finishes the building of a error event definition.
 B errorMessageVariable(String errorMessageVariable)
          Sets the error message variable attribute.
 B id(String identifier)
          Sets the identifier of the element.
 
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, 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

AbstractErrorEventDefinitionBuilder

public AbstractErrorEventDefinitionBuilder(BpmnModelInstance modelInstance,
                                           ErrorEventDefinition element,
                                           Class<?> selfType)
Method Detail

id

public B id(String identifier)
Description copied from class: AbstractBaseElementBuilder
Sets the identifier of the element.

Overrides:
id in class AbstractBaseElementBuilder<B extends AbstractErrorEventDefinitionBuilder<B>,ErrorEventDefinition>
Parameters:
identifier - the identifier to set
Returns:
the builder object

errorCodeVariable

public B errorCodeVariable(String errorCodeVariable)
Sets the error code variable attribute.


errorMessageVariable

public B errorMessageVariable(String errorMessageVariable)
Sets the error message variable attribute.


error

public B error(String errorCode)
Sets the error attribute with errorCode.


errorEventDefinitionDone

public <T extends AbstractFlowNodeBuilder> T errorEventDefinitionDone()
Finishes the building of a error event definition.

Type Parameters:
T -
Returns:
the parent event builder


Copyright © 2017 camunda services GmbH. All rights reserved.