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 Details

    • variable

      Provide a String variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a Short variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide an Integer variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a Long variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a Double variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a Boolean variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a Date variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide an Instant variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a LocalDate variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      Provide a LocalDateTime variable that would be passed to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • variable

      ExternalWorkerJobCompletionBuilder variable(String name, com.fasterxml.jackson.databind.JsonNode value)
      Provide a JsonNode that would be passed as a json variable to the Flowable application when completing the job.
      Parameters:
      name - the name of the variable
      value - the value of the variable
    • convertAndAddJsonVariable

      ExternalWorkerJobCompletionBuilder 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.
      Parameters:
      name - the name of the variable
      value - 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

      void bpmnError(String errorCode)
      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.