Class AbstractEndEventBuilder<B extends AbstractEndEventBuilder<B>>

All Implemented Interfaces:
ZeebeJobWorkerElementBuilder<B>, ZeebeJobWorkerPropertiesBuilder<B>, ZeebeVariablesMappingBuilder<B>
Direct Known Subclasses:
EndEventBuilder

public abstract class AbstractEndEventBuilder<B extends AbstractEndEventBuilder<B>> extends AbstractThrowEventBuilder<B,EndEvent>
Author:
Sebastian Menski
  • Constructor Details

  • Method Details

    • errorExpression

      public B errorExpression(String errorCodeExpression)
      Sets a dynamic error code for the error that is retrieved from the given expression
      Parameters:
      errorCodeExpression - the expression for the error
      Returns:
      the builder object
    • error

      public B error(String errorCode)
      Sets an error definition for the given error code. If already an error with this code exists it will be used, otherwise a new error is created.
      Parameters:
      errorCode - the code of the error
      Returns:
      the builder object
    • errorEventDefinition

      public ErrorEventDefinitionBuilder errorEventDefinition(String id)
      Creates an error event definition with an unique id and returns a builder for the error event definition.
      Returns:
      the error event definition builder object
    • errorEventDefinition

      public ErrorEventDefinitionBuilder errorEventDefinition()
      Creates an error event definition and returns a builder for the error event definition.
      Returns:
      the error event definition builder object
    • terminate

      public B terminate()
      Creates a terminate event definition and add it to the end event. It morphs the end event into a terminate end event.
      Returns:
      the builder object