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 Summary
Modifier and TypeMethodDescriptionzeebeJobRetries(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.zeebeTaskHeader(String key, String value) Adds a custom task header for the job.
-
Method Details
-
zeebeJobType
Sets a static type for the job.- Parameters:
type- the type of the job- Returns:
- the builder instance
-
zeebeJobTypeExpression
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
Sets a static number of retries for the job.- Parameters:
retries- the number of job retries- Returns:
- the builder instance
-
zeebeJobRetriesExpression
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
Adds a custom task header for the job. Can be called multiple times.- Parameters:
key- the key of the custom headervalue- the value of the custom header- Returns:
- the builder instance
-