Interface WorkerResult.Success

All Superinterfaces:
WorkerResult
Enclosing interface:
WorkerResult

public static non-sealed interface WorkerResult.Success extends WorkerResult
A successful result. It allows for configuring the completion details. Can be created via WorkerResultBuilder.success()
  • Method Details

    • variable

      WorkerResult.Success variable(String name, String value)
      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

      WorkerResult.Success variable(String name, Short value)
      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

      WorkerResult.Success variable(String name, Integer value)
      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

      WorkerResult.Success variable(String name, Long value)
      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

      WorkerResult.Success variable(String name, Double value)
      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

      WorkerResult.Success variable(String name, Boolean value)
      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

      WorkerResult.Success variable(String name, Date value)
      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

      WorkerResult.Success variable(String name, Instant value)
      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

      WorkerResult.Success variable(String name, LocalDate value)
      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

      WorkerResult.Success variable(String name, LocalDateTime value)
      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

      WorkerResult.Success 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

      WorkerResult.Success 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