Package io.zeebe.model.bpmn.builder
Class AbstractCatchEventBuilder<B extends AbstractCatchEventBuilder<B,E>,E extends CatchEvent>
- java.lang.Object
-
- io.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
-
- io.zeebe.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
-
- io.zeebe.model.bpmn.builder.AbstractFlowElementBuilder<B,E>
-
- io.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder<B,E>
-
- io.zeebe.model.bpmn.builder.AbstractEventBuilder<B,E>
-
- io.zeebe.model.bpmn.builder.AbstractCatchEventBuilder<B,E>
-
- All Implemented Interfaces:
ZeebeVariablesMappingBuilder<B>
- Direct Known Subclasses:
AbstractBoundaryEventBuilder
,AbstractIntermediateCatchEventBuilder
,AbstractStartEventBuilder
public abstract class AbstractCatchEventBuilder<B extends AbstractCatchEventBuilder<B,E>,E extends CatchEvent> extends AbstractEventBuilder<B,E> implements ZeebeVariablesMappingBuilder<B>
- Author:
- Sebastian Menski
-
-
Field Summary
-
Fields inherited from class io.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder
compensateBoundaryEvent, compensationStarted
-
Fields inherited from class io.zeebe.model.bpmn.builder.AbstractBaseElementBuilder
SPACE, ZEEBE_EXPRESSION_FORMAT
-
Fields inherited from class io.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCatchEventBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompensateEventDefinitionBuilder
compensateEventDefinition()
CompensateEventDefinitionBuilder
compensateEventDefinition(String id)
B
condition(String condition)
ConditionalEventDefinitionBuilder
conditionalEventDefinition()
ConditionalEventDefinitionBuilder
conditionalEventDefinition(String id)
B
message(String messageName)
Sets an event definition for the given message name.B
message(Consumer<MessageBuilder> messageBuilderConsumer)
MessageEventDefinitionBuilder
messageEventDefinition()
B
parallelMultiple()
Sets the event to be parallel multipleB
signal(String signalName)
Sets an event definition for the given signal name.B
timerWithCycle(String timerCycle)
Sets an event definition for the timer with a time cycle.B
timerWithCycleExpression(String timerCycle)
Sets an event definition for the timer with a time cycle.B
timerWithDate(String timerDate)
Sets an event definition for the timer with a time date.B
timerWithDateExpression(String timerDate)
B
timerWithDuration(String timerDuration)
Sets an event definition for the timer with a time duration.B
timerWithDurationExpression(String timerDuration)
Sets an event definition for the timer with a time duration.B
zeebeInput(String source, String target)
B
zeebeInputExpression(String sourceExpression, String target)
B
zeebeOutput(String source, String target)
B
zeebeOutputExpression(String sourceExpression, String target)
-
Methods inherited from class io.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder
businessRuleTask, businessRuleTask, callActivity, callActivity, callActivity, compensationDone, compensationStart, condition, conditionExpression, connectTarget, connectTargetWithAssociation, connectTargetWithSequenceFlow, connectTo, createTarget, createTargetBuilder, createTargetBuilder, endEvent, endEvent, endEvent, eventBasedGateway, eventBasedGateway, exclusiveGateway, exclusiveGateway, getCurrentSequenceFlowBuilder, inclusiveGateway, inclusiveGateway, intermediateCatchEvent, intermediateCatchEvent, intermediateCatchEvent, intermediateThrowEvent, intermediateThrowEvent, isBoundaryEventWithStartedCompensation, isCompensationHandler, manualTask, manualTask, moveToActivity, moveToLastExclusiveGateway, moveToLastGateway, moveToNode, parallelGateway, parallelGateway, receiveTask, receiveTask, receiveTask, scriptTask, scriptTask, sendTask, sendTask, sequenceFlowId, serviceTask, serviceTask, serviceTask, subProcess, subProcess, subProcess, transaction, transaction, userTask, userTask
-
Methods inherited from class io.zeebe.model.bpmn.builder.AbstractFlowElementBuilder
name
-
Methods inherited from class io.zeebe.model.bpmn.builder.AbstractBaseElementBuilder
addExtensionElement, addExtensionElement, asZeebeExpression, createBpmnEdge, createBpmnShape, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEdge, createEmptyErrorEventDefinition, createEmptyMessageEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessage, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement, id, resizeSubProcess, setCoordinates, setWaypoints, setWaypointsWithSourceAndTarget
-
Methods inherited from class io.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
-
-
-
Constructor Detail
-
AbstractCatchEventBuilder
protected AbstractCatchEventBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
-
-
Method Detail
-
parallelMultiple
public B parallelMultiple()
Sets the event to be parallel multiple- Returns:
- the builder object
-
message
public B message(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
-
message
public B message(Consumer<MessageBuilder> messageBuilderConsumer)
-
messageEventDefinition
public MessageEventDefinitionBuilder messageEventDefinition()
-
signal
public B signal(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
-
timerWithDate
public B timerWithDate(String timerDate)
Sets an event definition for the timer with a time date.- Parameters:
timerDate
- the time date of the timer- Returns:
- the builder object
-
timerWithDurationExpression
public B timerWithDurationExpression(String timerDuration)
Sets an event definition for the timer with a time duration.- Parameters:
timerDuration
- the duration of the timer (as feel expression, without the '=' prefix)- Returns:
- the builder object
-
timerWithDuration
public B timerWithDuration(String timerDuration)
Sets an event definition for the timer with a time duration.- Parameters:
timerDuration
- the time duration of the timer- Returns:
- the builder object
-
timerWithCycleExpression
public B timerWithCycleExpression(String timerCycle)
Sets an event definition for the timer with a time cycle.- Parameters:
timerCycle
- the time cycle of the timer (as feel expression, without the '=' prefix)- Returns:
- the builder object
-
timerWithCycle
public B timerWithCycle(String timerCycle)
Sets an event definition for the timer with a time cycle.- Parameters:
timerCycle
- the time cycle of the timer- Returns:
- the builder object
-
compensateEventDefinition
public CompensateEventDefinitionBuilder compensateEventDefinition()
-
compensateEventDefinition
public CompensateEventDefinitionBuilder compensateEventDefinition(String id)
-
conditionalEventDefinition
public ConditionalEventDefinitionBuilder conditionalEventDefinition()
-
conditionalEventDefinition
public ConditionalEventDefinitionBuilder conditionalEventDefinition(String id)
-
condition
public B condition(String condition)
- Overrides:
condition
in classAbstractFlowNodeBuilder<B extends AbstractCatchEventBuilder<B,E>,E extends CatchEvent>
-
zeebeInputExpression
public B zeebeInputExpression(String sourceExpression, String target)
- Specified by:
zeebeInputExpression
in interfaceZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
-
zeebeOutputExpression
public B zeebeOutputExpression(String sourceExpression, String target)
- Specified by:
zeebeOutputExpression
in interfaceZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
-
zeebeInput
public B zeebeInput(String source, String target)
- Specified by:
zeebeInput
in interfaceZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
-
zeebeOutput
public B zeebeOutput(String source, String target)
- Specified by:
zeebeOutput
in interfaceZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
-
-