Class JobResult

java.lang.Object
io.camunda.client.protocol.rest.JobResult

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-06-04T12:01:10.435788262Z[GMT]", comments="Generator version: 7.12.0") public class JobResult extends Object
The result of the completed job as determined by the worker. This functionality is currently supported only by user task listeners.
  • Field Details

  • Constructor Details

    • JobResult

      public JobResult()
  • Method Details

    • denied

      public JobResult denied(@Nullable Boolean denied)
    • getDenied

      @Nullable public Boolean getDenied()
      Indicates whether the worker denies the work, i.e. explicitly doesn't approve it. For example, a user task listener can deny the completion of a task by setting this flag to true. In this example, the completion of a task is represented by a job that the worker can complete as denied. As a result, the completion request is rejected and the task remains active. Defaults to false.
      Returns:
      denied
    • setDenied

      public void setDenied(@Nullable Boolean denied)
    • deniedReason

      public JobResult deniedReason(@Nullable String deniedReason)
    • getDeniedReason

      @Nullable public String getDeniedReason()
      The reason provided by the user task listener for denying the work.
      Returns:
      deniedReason
    • setDeniedReason

      public void setDeniedReason(@Nullable String deniedReason)
    • corrections

      public JobResult corrections(@Nullable JobResultCorrections corrections)
    • getCorrections

      @Nullable public JobResultCorrections getCorrections()
      Get corrections
      Returns:
      corrections
    • setCorrections

      public void setCorrections(@Nullable JobResultCorrections corrections)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string