Class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,E>,E extends ThrowEvent>

Direct Known Subclasses:
AbstractEndEventBuilder, AbstractIntermediateThrowEventBuilder

public abstract class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,E>,E extends ThrowEvent> extends AbstractEventBuilder<B,E>
Author:
Sebastian Menski
  • Constructor Details

    • AbstractThrowEventBuilder

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

    • 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
    • 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(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(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(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(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(String id)