Package io.camunda.client.protocol.rest
Class JobErrorRequest
java.lang.Object
io.camunda.client.protocol.rest.JobErrorRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class JobErrorRequest
extends Object
JobErrorRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanerrorMessage(String errorMessage) The error code that will be matched with an error catch event.An error message that provides additional context.The token identifying a leased job's activation, obtained from `ActivatedJobResult.leaseToken`.JSON object that will instantiate the variables at the local scope of the error catch event that catches the thrown error.inthashCode()leaseToken(String leaseToken) putVariablesItem(String key, Object variablesItem) voidsetErrorCode(String errorCode) voidsetErrorMessage(String errorMessage) voidsetLeaseToken(String leaseToken) voidsetVariables(Map<String, Object> variables) toString()
-
Field Details
-
JSON_PROPERTY_ERROR_CODE
- See Also:
-
JSON_PROPERTY_ERROR_MESSAGE
- See Also:
-
JSON_PROPERTY_VARIABLES
- See Also:
-
JSON_PROPERTY_LEASE_TOKEN
- See Also:
-
-
Constructor Details
-
JobErrorRequest
public JobErrorRequest()
-
-
Method Details
-
errorCode
-
getErrorCode
The error code that will be matched with an error catch event.- Returns:
- errorCode
-
setErrorCode
-
errorMessage
-
getErrorMessage
An error message that provides additional context.- Returns:
- errorMessage
-
setErrorMessage
-
variables
-
putVariablesItem
-
getVariables
JSON object that will instantiate the variables at the local scope of the error catch event that catches the thrown error.- Returns:
- variables
-
setVariables
-
leaseToken
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-