Class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,E>,E extends ThrowEvent>
java.lang.Object
io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractFlowElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractEventBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractThrowEventBuilder<B,E>
- All Implemented Interfaces:
ZeebeJobWorkerElementBuilder<B>,ZeebeJobWorkerPropertiesBuilder<B>,ZeebeVariablesMappingBuilder<B>
- Direct Known Subclasses:
AbstractEndEventBuilder,AbstractIntermediateThrowEventBuilder
public abstract class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,E>,E extends ThrowEvent>
extends AbstractEventBuilder<B,E>
implements ZeebeJobWorkerElementBuilder<B>
- Author:
- Sebastian Menski
-
Field Summary
Fields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder
compensateBoundaryEvent, compensationStartedFields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder
SPACE, ZEEBE_EXPRESSION_FORMATFields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractThrowEventBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionescalation(String escalationCode) Sets an escalation definition for the given escalation code.Creates an escalation event definition and returns a builder for the escalation event definition.Creates an escalation event definition with an unique id and returns a builder for the escalation event definition.escalationExpression(String escalationCodeExpression) Sets a dynamic escalation code for the escalation that is retrieved from the given expressionSets a link event definition for the given link name.Creates an empty link event definition with a unique id and returns a builder for the link event definition.Creates an empty link event definition with the given id and returns a builder for the link event definition.Sets an event definition for the given message name.message(Consumer<PublishMessageBuilder> consumer) Creates an empty message event definition with an unique id and returns a builder for the message event definition.Creates an empty message event definition with the given id and returns a builder for the message event definition.Sets an event definition for the given signal name.Creates an empty signal event definition with an unique id and returns a builder for the signal event definition.signalEventDefinition(String signalName) Sets an event definition for the given Signal name.zeebeInput(String source, String target) zeebeInputExpression(String sourceExpression, String target) zeebeJobRetries(String retries) Sets a static number of retries for the job.zeebeJobRetriesExpression(String expression) Sets a dynamic number of retries for the job that is retrieved from the given expressionzeebeJobType(String type) Sets a static type for the job.zeebeJobTypeExpression(String expression) Sets a dynamic type for the job that is retrieved from the given expression.zeebeOutput(String source, String target) zeebeOutputExpression(String sourceExpression, String target) zeebeTaskHeader(String key, String value) Adds a custom task header for the job.Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder
businessRuleTask, businessRuleTask, businessRuleTask, callActivity, callActivity, callActivity, compensationDone, compensationStart, condition, condition, conditionExpression, connectTarget, connectTargetWithAssociation, connectTargetWithSequenceFlow, connectTo, createTarget, createTargetBuilder, createTargetBuilder, endEvent, endEvent, endEvent, eventBasedGateway, eventBasedGateway, exclusiveGateway, exclusiveGateway, getCurrentSequenceFlowBuilder, inclusiveGateway, inclusiveGateway, intermediateCatchEvent, intermediateCatchEvent, intermediateCatchEvent, intermediateThrowEvent, intermediateThrowEvent, intermediateThrowEvent, isBoundaryEventWithStartedCompensation, isCompensationHandler, manualTask, manualTask, moveToActivity, moveToLastExclusiveGateway, moveToLastGateway, moveToLastInclusiveGateway, moveToNode, moveToProcess, parallelGateway, parallelGateway, receiveTask, receiveTask, receiveTask, scriptTask, scriptTask, scriptTask, sendTask, sendTask, sendTask, sequenceFlowId, serviceTask, serviceTask, serviceTask, subProcess, subProcess, subProcess, task, task, transaction, transaction, userTask, userTask, userTaskMethods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractFlowElementBuilder
nameMethods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder
addExtensionElement, addExtensionElement, asZeebeExpression, createBpmnShape, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEdge, createEmptyErrorEventDefinition, createEmptyEscalationEventDefinition, createEmptyMessageEventDefinition, createEmptySignalEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessage, createMessageEventDefinition, createSibling, createSibling, createSignal, createSignalEventDefinition, createZeebeUserTaskForm, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findProcess, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement, id, resizeBpmnShape, setCoordinates, setWaypoints, setWaypointsWithSourceAndTargetMethods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
documentation, done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
Constructor Details
-
AbstractThrowEventBuilder
-
-
Method Details
-
message
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
-
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
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
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
Creates an empty signal event definition with an unique id and returns a builder for the signal event definition.- Returns:
- the signal event definition builder object
-
signalEventDefinition
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
-
escalationExpression
Sets a dynamic escalation code for the escalation that is retrieved from the given expression- Parameters:
escalationCodeExpression- the expression for the escalation- Returns:
- the builder object
-
escalation
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
-
escalationEventDefinition
Creates an escalation event definition with an unique id and returns a builder for the escalation event definition.- Returns:
- the escalation event definition builder object
-
escalationEventDefinition
Creates an escalation event definition and returns a builder for the escalation event definition.- Returns:
- the escalation event definition builder object
-
compensateEventDefinition
-
compensateEventDefinition
-
link
Sets a link event definition for the given link name.- Parameters:
linkName- the name of the link- Returns:
- the builder object
-
linkEventDefinition
Creates an empty link event definition with a unique id and returns a builder for the link event definition.- Returns:
- the link event definition builder object
-
linkEventDefinition
Creates an empty link event definition with the given id and returns a builder for the link event definition.- Parameters:
id- the id of the link event definition- Returns:
- the link event definition builder object
-
zeebeJobType
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a static type for the job.- Specified by:
zeebeJobTypein interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractThrowEventBuilder<B,E>> - Parameters:
type- the type of the job- Returns:
- the builder instance
-
zeebeJobTypeExpression
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a dynamic type for the job that is retrieved from the given expression.- Specified by:
zeebeJobTypeExpressionin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractThrowEventBuilder<B,E>> - Parameters:
expression- the expression for the type of the job- Returns:
- the builder instance
-
zeebeJobRetries
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a static number of retries for the job.- Specified by:
zeebeJobRetriesin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractThrowEventBuilder<B,E>> - Parameters:
retries- the number of job retries- Returns:
- the builder instance
-
zeebeJobRetriesExpression
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a dynamic number of retries for the job that is retrieved from the given expression- Specified by:
zeebeJobRetriesExpressionin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractThrowEventBuilder<B,E>> - Parameters:
expression- the expression for the number of job retries- Returns:
- the builder instance
-
zeebeTaskHeader
Description copied from interface:ZeebeJobWorkerPropertiesBuilderAdds a custom task header for the job. Can be called multiple times.- Specified by:
zeebeTaskHeaderin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractThrowEventBuilder<B,E>> - Parameters:
key- the key of the custom headervalue- the value of the custom header- Returns:
- the builder instance
-
zeebeInputExpression
- Specified by:
zeebeInputExpressionin interfaceZeebeVariablesMappingBuilder<B extends AbstractThrowEventBuilder<B,E>>
-
zeebeOutputExpression
- Specified by:
zeebeOutputExpressionin interfaceZeebeVariablesMappingBuilder<B extends AbstractThrowEventBuilder<B,E>>
-
zeebeInput
- Specified by:
zeebeInputin interfaceZeebeVariablesMappingBuilder<B extends AbstractThrowEventBuilder<B,E>>
-
zeebeOutput
- Specified by:
zeebeOutputin interfaceZeebeVariablesMappingBuilder<B extends AbstractThrowEventBuilder<B,E>>
-