Class EngineClient


  • public class EngineClient
    extends java.lang.Object
    Author:
    Tassilo Weidner
    • Field Detail

      • EXTERNAL_TASK_RESOURCE_PATH

        protected static final java.lang.String EXTERNAL_TASK_RESOURCE_PATH
        See Also:
        Constant Field Values
      • EXTERNAL_TASK__PROCESS_RESOURCE_PATH

        protected static final java.lang.String EXTERNAL_TASK__PROCESS_RESOURCE_PATH
        See Also:
        Constant Field Values
      • FETCH_AND_LOCK_RESOURCE_PATH

        protected static final java.lang.String FETCH_AND_LOCK_RESOURCE_PATH
        See Also:
        Constant Field Values
      • ID_RESOURCE_PATH

        protected static final java.lang.String ID_RESOURCE_PATH
        See Also:
        Constant Field Values
      • LOCK_RESOURCE_PATH

        public static final java.lang.String LOCK_RESOURCE_PATH
        See Also:
        Constant Field Values
      • EXTEND_LOCK_RESOURCE_PATH

        public static final java.lang.String EXTEND_LOCK_RESOURCE_PATH
        See Also:
        Constant Field Values
      • SET_VARIABLES_RESOURCE_PATH

        public static final java.lang.String SET_VARIABLES_RESOURCE_PATH
        See Also:
        Constant Field Values
      • UNLOCK_RESOURCE_PATH

        public static final java.lang.String UNLOCK_RESOURCE_PATH
        See Also:
        Constant Field Values
      • COMPLETE_RESOURCE_PATH

        public static final java.lang.String COMPLETE_RESOURCE_PATH
        See Also:
        Constant Field Values
      • FAILURE_RESOURCE_PATH

        public static final java.lang.String FAILURE_RESOURCE_PATH
        See Also:
        Constant Field Values
      • BPMN_ERROR_RESOURCE_PATH

        public static final java.lang.String BPMN_ERROR_RESOURCE_PATH
        See Also:
        Constant Field Values
      • EXECUTION_RESOURCE_PATH

        public static final java.lang.String EXECUTION_RESOURCE_PATH
        See Also:
        Constant Field Values
      • EXECUTION_ID_RESOURCE_PATH

        public static final java.lang.String EXECUTION_ID_RESOURCE_PATH
        See Also:
        Constant Field Values
      • GET_LOCAL_VARIABLE

        public static final java.lang.String GET_LOCAL_VARIABLE
        See Also:
        Constant Field Values
      • GET_LOCAL_BINARY_VARIABLE

        public static final java.lang.String GET_LOCAL_BINARY_VARIABLE
        See Also:
        Constant Field Values
      • baseUrl

        protected java.lang.String baseUrl
      • workerId

        protected java.lang.String workerId
      • maxTasks

        protected int maxTasks
      • usePriority

        protected boolean usePriority
      • asyncResponseTimeout

        protected java.lang.Long asyncResponseTimeout
    • Constructor Detail

      • EngineClient

        public EngineClient​(java.lang.String workerId,
                            int maxTasks,
                            java.lang.Long asyncResponseTimeout,
                            java.lang.String baseUrl,
                            RequestExecutor engineInteraction)
      • EngineClient

        public EngineClient​(java.lang.String workerId,
                            int maxTasks,
                            java.lang.Long asyncResponseTimeout,
                            java.lang.String baseUrl,
                            RequestExecutor engineInteraction,
                            boolean usePriority)
    • Method Detail

      • lock

        public void lock​(java.lang.String taskId,
                         long lockDuration)
      • unlock

        public void unlock​(java.lang.String taskId)
      • complete

        public void complete​(java.lang.String taskId,
                             java.util.Map<java.lang.String,​java.lang.Object> variables,
                             java.util.Map<java.lang.String,​java.lang.Object> localVariables)
      • setVariables

        public void setVariables​(java.lang.String processId,
                                 java.util.Map<java.lang.String,​java.lang.Object> variables)
      • failure

        public void failure​(java.lang.String taskId,
                            java.lang.String errorMessage,
                            java.lang.String errorDetails,
                            int retries,
                            long retryTimeout,
                            java.util.Map<java.lang.String,​java.lang.Object> variables,
                            java.util.Map<java.lang.String,​java.lang.Object> localVariables)
      • bpmnError

        public void bpmnError​(java.lang.String taskId,
                              java.lang.String errorCode,
                              java.lang.String errorMessage,
                              java.util.Map<java.lang.String,​java.lang.Object> variables)
      • extendLock

        public void extendLock​(java.lang.String taskId,
                               long newDuration)
      • getLocalBinaryVariable

        public byte[] getLocalBinaryVariable​(java.lang.String variableName,
                                             java.lang.String processInstanceId)
      • getBaseUrl

        public java.lang.String getBaseUrl()
      • getWorkerId

        public java.lang.String getWorkerId()
      • setTypedValues

        public void setTypedValues​(TypedValues typedValues)
      • isUsePriority

        public boolean isUsePriority()