Class AbstractErrorEventDefinitionBuilder<B extends AbstractErrorEventDefinitionBuilder<B>>
- 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.AbstractRootElementBuilder<B,ErrorEventDefinition>
-
- org.camunda.bpm.model.bpmn.builder.AbstractErrorEventDefinitionBuilder<B>
-
- Direct Known Subclasses:
CamundaErrorEventDefinitionBuilder
,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
Constructors Constructor Description AbstractErrorEventDefinitionBuilder(BpmnModelInstance modelInstance, ErrorEventDefinition element, Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
error(String errorCode)
Sets the error attribute with errorCode.B
error(String errorCode, String errorMessage)
Sets the error attribute with errorCode and errorMessage.B
errorCodeVariable(String errorCodeVariable)
Sets the error code variable attribute.<T extends AbstractFlowNodeBuilder>
TerrorEventDefinitionDone()
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, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, createTimeCycle, createTimeDate, createTimeDuration, documentation, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, 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, throwEventDefinitionDone, transactionDone
-
-
-
-
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 classAbstractBaseElementBuilder<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, String errorMessage)
Sets the error attribute with errorCode and errorMessage.
-
errorEventDefinitionDone
public <T extends AbstractFlowNodeBuilder> T errorEventDefinitionDone()
Finishes the building of a error event definition.- Type Parameters:
T
-- Returns:
- the parent event builder
-
-