Class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,E>,E extends ThrowEvent>
- 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.AbstractFlowElementBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractFlowNodeBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractEventBuilder<B,E>
-
- org.camunda.bpm.model.bpmn.builder.AbstractThrowEventBuilder<B,E>
-
- Direct Known Subclasses:
AbstractEndEventBuilder
,AbstractIntermediateThrowEventBuilder
public abstract class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,E>,E extends ThrowEvent> extends AbstractEventBuilder<B,E>
- 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
Constructors Modifier Constructor Description protected
AbstractThrowEventBuilder(BpmnModelInstance modelInstance, E element, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompensateEventDefinitionBuilder
compensateEventDefinition()
CompensateEventDefinitionBuilder
compensateEventDefinition(java.lang.String id)
B
escalation(java.lang.String escalationCode)
Sets an escalation definition for the given escalation code.B
message(java.lang.String messageName)
Sets an event definition for the given message name.MessageEventDefinitionBuilder
messageEventDefinition()
Creates an empty message event definition with an unique id and returns a builder for the message event definition.MessageEventDefinitionBuilder
messageEventDefinition(java.lang.String id)
Creates an empty message event definition with the given id and returns a builder for the message event definition.B
signal(java.lang.String signalName)
Sets an event definition for the given signal name.SignalEventDefinitionBuilder
signalEventDefinition(java.lang.String signalName)
Sets an event definition for the given Signal name.-
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, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, createTimeCycle, createTimeDate, createTimeDuration, documentation, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, 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, throwEventDefinitionDone, transactionDone
-
-
-
-
Constructor Detail
-
AbstractThrowEventBuilder
protected AbstractThrowEventBuilder(BpmnModelInstance modelInstance, E element, java.lang.Class<?> selfType)
-
-
Method Detail
-
message
public B message(java.lang.String messageName)
Sets an event definition for the given message name. If already a message with this name exists it will be used, otherwise a new message is created.- Parameters:
messageName
- the name of the message- Returns:
- the builder object
-
messageEventDefinition
public MessageEventDefinitionBuilder messageEventDefinition()
Creates an empty message event definition with an unique id and returns a builder for the message event definition.- Returns:
- the message event definition builder object
-
messageEventDefinition
public MessageEventDefinitionBuilder messageEventDefinition(java.lang.String id)
Creates an empty message event definition with the given id and returns a builder for the message event definition.- Parameters:
id
- the id of the message event definition- Returns:
- the message event definition builder object
-
signal
public B signal(java.lang.String signalName)
Sets an event definition for the given signal name. If already a signal with this name exists it will be used, otherwise a new signal is created.- Parameters:
signalName
- the name of the signal- Returns:
- the builder object
-
signalEventDefinition
public SignalEventDefinitionBuilder signalEventDefinition(java.lang.String signalName)
Sets an event definition for the given Signal name. If a signal with this name already exists it will be used, otherwise a new signal is created. It returns a builder for the Signal Event Definition.- Parameters:
signalName
- the name of the signal- Returns:
- the signal event definition builder object
-
escalation
public B escalation(java.lang.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
-
compensateEventDefinition
public CompensateEventDefinitionBuilder compensateEventDefinition()
-
compensateEventDefinition
public CompensateEventDefinitionBuilder compensateEventDefinition(java.lang.String id)
-
-