Package org.flowable.external.client
Interface ExternalWorkerJobCompletionBuilder
- All Known Implementing Classes:
RestExternalWorkerCompletionBuilder
public interface ExternalWorkerJobCompletionBuilder
A builder that can be used to complete a specific job.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecute the completion of the job using a BPMN error without an error code.voidExecute the completion of the job using a BPMN error using the given error code.voidExecute the completion of the job using a CMMN termination.voidcomplete()Execute the completion of the job.convertAndAddJsonVariable(String name, Object value) Provide a variable value of any type that would be converted to a json variable and passed to the Flowable application when completing the job.Provide aJsonNodethat would be passed as a json variable to the Flowable application when completing the job.Provide aBooleanvariable that would be passed to the Flowable application when completing the job.Provide aDoublevariable that would be passed to the Flowable application when completing the job.Provide anIntegervariable that would be passed to the Flowable application when completing the job.Provide aLongvariable that would be passed to the Flowable application when completing the job.Provide aShortvariable that would be passed to the Flowable application when completing the job.Provide aStringvariable that would be passed to the Flowable application when completing the job.Provide anInstantvariable that would be passed to the Flowable application when completing the job.Provide aLocalDatevariable that would be passed to the Flowable application when completing the job.variable(String name, LocalDateTime value) Provide aLocalDateTimevariable that would be passed to the Flowable application when completing the job.Provide aDatevariable that would be passed to the Flowable application when completing the job.
-
Method Details
-
variable
Provide aStringvariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aShortvariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide anIntegervariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aLongvariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aDoublevariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aBooleanvariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aDatevariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide anInstantvariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aLocalDatevariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
Provide aLocalDateTimevariable that would be passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
variable
ExternalWorkerJobCompletionBuilder variable(String name, com.fasterxml.jackson.databind.JsonNode value) Provide aJsonNodethat would be passed as a json variable to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
convertAndAddJsonVariable
Provide a variable value of any type that would be converted to a json variable and passed to the Flowable application when completing the job.- Parameters:
name- the name of the variablevalue- the value of the variable
-
complete
void complete()Execute the completion of the job. -
bpmnError
void bpmnError()Execute the completion of the job using a BPMN error without an error code.- See Also:
-
bpmnError
Execute the completion of the job using a BPMN error using the given error code.- See Also:
-
cmmnTerminate
void cmmnTerminate()Execute the completion of the job using a CMMN termination.
-