Class ExternalTaskFailureDto


  • public class ExternalTaskFailureDto
    extends Object
    ExternalTaskFailureDto
    • Constructor Detail

      • ExternalTaskFailureDto

        public ExternalTaskFailureDto()
    • Method Detail

      • getErrorMessage

        public String getErrorMessage()
        An message indicating the reason of the failure.
        Returns:
        errorMessage
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
      • getErrorDetails

        public String getErrorDetails()
        A detailed error description.
        Returns:
        errorDetails
      • setErrorDetails

        public void setErrorDetails​(String errorDetails)
      • getRetries

        public Integer getRetries()
        A number of how often the task should be retried. Must be >= 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. The incident's message is set to the `errorMessage` parameter.
        Returns:
        retries
      • setRetries

        public void setRetries​(Integer retries)
      • getRetryTimeout

        public Long getRetryTimeout()
        A timeout in milliseconds before the external task becomes available again for fetching. Must be >= 0.
        Returns:
        retryTimeout
      • setRetryTimeout

        public void setRetryTimeout​(Long retryTimeout)
      • getVariables

        public Map<String,​VariableValueDto> getVariables()
        A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object with the following properties:
        Returns:
        variables
      • getLocalVariables

        public Map<String,​VariableValueDto> getLocalVariables()
        A JSON object containing local variable key-value pairs. Local variables are set only in the scope of external task. Each key is a variable name and each value a JSON variable value object with the following properties:
        Returns:
        localVariables
      • getWorkerId

        public String getWorkerId()
        **Mandatory.** The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task.
        Returns:
        workerId
      • setWorkerId

        public void setWorkerId​(String workerId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object