Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9124

Java External Task Client doesn't return correct error

XMLWordPrintable

      Steps to reproduce
      1. Provide a model with an External Task with incorrect parameters (ex. broken script as an output variable).
      2. Run a process instance from the provided model and confirm that the External Task is queued for "execution".
      3. Fetch and lock the task by using the Java External Task Client and try to complete it.

      Expected behaviour
      A correct exception and description are provided. Ex.:

      {"type":"ScriptEvaluationException","message":"Unable to evaluate script while executing activity 'Task_0b8ffxn' in the process definition with id 'Process_1:1:3b9fad87-67d7-11e8-a67c-0242ac110004': groovy.lang.MissingPropertyException: No such property: invalidScript for class: Script2"}

      Observed behaviour
      A general exception is provided. Ex.:

      org.camunda.bpm.client.exception.NotResumedException: TASK/CLIENT-01009 Exception while completing the external task: The corresponding process instance could not be resumed

      Hint
      The engine provides the exception type and message in the response body. However, the response handler that is implemented by the client uses the StatusLine, resulting in a loss of the actual error. See here for more information.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              nikola.koevski Nikola Koevski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: