Class AbstractCatchEventBuilder<B extends AbstractCatchEventBuilder<B,E>,E extends CatchEvent>

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
  • Constructor Details

    • AbstractCatchEventBuilder

      protected AbstractCatchEventBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
  • Method Details

    • 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
    • timerWithDateExpression

      public B timerWithDateExpression(String timerDate)
    • 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
    • timerWithDuration

      public B timerWithDuration(Duration 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 class AbstractFlowNodeBuilder<B extends AbstractCatchEventBuilder<B,E>,E extends CatchEvent>
    • zeebeInputExpression

      public B zeebeInputExpression(String sourceExpression, String target)
      Specified by:
      zeebeInputExpression in interface ZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
    • zeebeOutputExpression

      public B zeebeOutputExpression(String sourceExpression, String target)
      Specified by:
      zeebeOutputExpression in interface ZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
    • zeebeInput

      public B zeebeInput(String source, String target)
      Specified by:
      zeebeInput in interface ZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>
    • zeebeOutput

      public B zeebeOutput(String source, String target)
      Specified by:
      zeebeOutput in interface ZeebeVariablesMappingBuilder<B extends AbstractCatchEventBuilder<B,E>>