-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.10.0-alpha1, 7.10.0-alpha5
-
None
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.