Interface ZeebeJobWorkerPropertiesBuilder<T>

All Known Subinterfaces:
ZeebeJobWorkerElementBuilder<T>
All Known Implementing Classes:
AbstractBusinessRuleTaskBuilder, AbstractEndEventBuilder, AbstractIntermediateThrowEventBuilder, AbstractJobWorkerTaskBuilder, AbstractScriptTaskBuilder, AbstractSendTaskBuilder, AbstractServiceTaskBuilder, AbstractThrowEventBuilder, BusinessRuleTaskBuilder, EndEventBuilder, IntermediateThrowEventBuilder, ScriptTaskBuilder, SendTaskBuilder, ServiceTaskBuilder, ZeebeJobWorkerPropertiesBuilderImpl

public interface ZeebeJobWorkerPropertiesBuilder<T>
A fluent builder for job worker related properties of elements that are based on jobs and are processed by job workers (e.g. service tasks).
  • Method Details

    • zeebeJobType

      T zeebeJobType(String type)
      Sets a static type for the job.
      Parameters:
      type - the type of the job
      Returns:
      the builder instance
    • zeebeJobTypeExpression

      T zeebeJobTypeExpression(String expression)
      Sets a dynamic type for the job that is retrieved from the given expression.
      Parameters:
      expression - the expression for the type of the job
      Returns:
      the builder instance
    • zeebeJobRetries

      T zeebeJobRetries(String retries)
      Sets a static number of retries for the job.
      Parameters:
      retries - the number of job retries
      Returns:
      the builder instance
    • zeebeJobRetriesExpression

      T zeebeJobRetriesExpression(String expression)
      Sets a dynamic number of retries for the job that is retrieved from the given expression
      Parameters:
      expression - the expression for the number of job retries
      Returns:
      the builder instance
    • zeebeTaskHeader

      T zeebeTaskHeader(String key, String value)
      Adds a custom task header for the job. Can be called multiple times.
      Parameters:
      key - the key of the custom header
      value - the value of the custom header
      Returns:
      the builder instance