Interface ExternalTaskDelegate

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void complete()
      Complete this external task.
      void complete​(Map<String,​Object> variables)
      Complete this external task and deliver a map of additional information created by the external worker and to be stored as process instance variables.
      void handleBpmnError​(String errorCode)
      Handle a BPMN Error raised by the external worker.
      void handleBpmnError​(String errorCode, Map<String,​Object> variables)
      Handle a BPMN Error occurring with or raised by the external worker and deliver a map of additional information to be stored as process instance variables.
      • Methods inherited from interface org.camunda.bpm.scenario.defer.Deferrable

        defer
      • Methods inherited from interface org.camunda.bpm.engine.externaltask.ExternalTask

        getActivityId, getActivityInstanceId, getBusinessKey, getErrorMessage, getExecutionId, getExtensionProperties, getId, getLockExpirationTime, getPriority, getProcessDefinitionId, getProcessDefinitionKey, getProcessDefinitionVersionTag, getProcessInstanceId, getRetries, getTenantId, getTopicName, getWorkerId, isSuspended
    • Method Detail

      • complete

        void complete()
        Complete this external task.
        Since:
        Camunda BPM 7.4.0
      • complete

        void complete​(Map<String,​Object> variables)
        Complete this external task and deliver a map of additional information created by the external worker and to be stored as process instance variables.
        Since:
        Camunda BPM 7.4.0
      • handleBpmnError

        void handleBpmnError​(String errorCode)
        Handle a BPMN Error raised by the external worker.
        Parameters:
        errorCode - of the BPMN error raised.
        Since:
        Camunda BPM 7.5.0
      • handleBpmnError

        void handleBpmnError​(String errorCode,
                             Map<String,​Object> variables)
        Handle a BPMN Error occurring with or raised by the external worker and deliver a map of additional information to be stored as process instance variables.
        Parameters:
        errorCode - of the BPMN error raised.
        variables - the process variables to be stored
        Since:
        Camunda BPM 7.10.0