Class JobCompletionRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class JobCompletionRequest extends Object
JobCompletionRequest
  • Field Details

  • Constructor Details

    • JobCompletionRequest

      public JobCompletionRequest()
  • Method Details

    • variables

      public JobCompletionRequest variables(@Nullable Map<String,Object> variables)
    • putVariablesItem

      public JobCompletionRequest putVariablesItem(String key, Object variablesItem)
    • getVariables

      @Nullable public Map<String,Object> getVariables()
      The variables to complete the job with.
      Returns:
      variables
    • setVariables

      public void setVariables(@Nullable Map<String,Object> variables)
    • result

      public JobCompletionRequest result(@Nullable JobResult result)
    • getResult

      @Nullable public JobResult getResult()
      Get result
      Returns:
      result
    • setResult

      public void setResult(@Nullable JobResult result)
    • leaseToken

      public JobCompletionRequest leaseToken(@Nullable String leaseToken)
    • getLeaseToken

      @Nullable public String getLeaseToken()
      The token identifying a leased job's activation, obtained from `ActivatedJobResult.leaseToken`. For a leased job, the matching token must be supplied to prove the command comes from the worker that holds the current lease; a command with no token is rejected. A command carrying a stale token is likewise rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). A job that was activated without a lease requires no token.
      Returns:
      leaseToken
    • setLeaseToken

      public void setLeaseToken(@Nullable String leaseToken)
    • businessId

      public JobCompletionRequest businessId(@Nullable String businessId)
    • getBusinessId

      @Nullable public String getBusinessId()
      An optional business id to assign to the process instance the job belongs to, as part of completing the job, letting a worker set the identifier from work it just performed. The business id can only be assigned to a root process instance: if the job belongs to a child process instance (one started by a call activity), the completion is rejected. An empty business id is likewise rejected. The assignment is single and irreversible and is only accepted while business id uniqueness is disabled. Only artifacts created after the assignment carry the business id; already-existing ones are not enriched. Completing with a business id that differs from one already assigned rejects the whole completion, leaving the job open; re-sending the identical business id is an idempotent no-op.
      Returns:
      businessId
    • setBusinessId

      public void setBusinessId(@Nullable String businessId)
    • 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