Error-Message:
raise Exception(get_response_error_message(response.status_code, resp_json))
Exception: received 500 : ProcessEngineException : Error while evaluating expression: ${!check}. Cause: Cannot coerce from class java.util.ArrayList to class java.lang.Boolean
What are your property panels setting for the dmn task? It looks like that your result is stored in an array list. That is why the expression fails. Make sure that you define the result variable and map the decision result to a singleEntry. Like this you store the result in a variable, which you can then access in your expression
Everything looks fine, I deployed both models, delete the external task and hand in the variables for the DMN table at the start event and it works on my machine…
Maybe it comes from your external task? How are you sending the variables? Can you share the code of your external task ? It looks like that Python code throws (or raise) an exception.
My last code is:
return task.complete({“Projektbezeichnung”: str(project_name), “Double Checking”: bool(dc),
“Website-Anzahl”: int(n_of_urls), “Keyword-Anzahl”: int(n_of_kws_sw)})
Or do you need the whole script?
Edit:
I tried to return task.complete() without a variable and only one, but the same error occurs.
Hi,
I had only one test case.
It was the combination (“Website-Anzahl” = 3 and “Keyword-Anzahl” = 3), so this shouldn’t be the problem?
Or do I have to cover each case directly in the DMN table? At first I only took the two to test the process in a simplified manner.
Try to put a user task before the business rules task and another one after it so you can trace the values of input variables and output variable from the cockpit app or even from tasklist app by clicking on load variables button of the generic task form.
Yes I think that is good idea to understand in which data format your variables arrive from the external task. And if you need help with the Python code, it would be good if you share the whole code.
I don’t know why the engine is looking for “Keyword”, “Website” & “Double”. Can’t Feel handle spaces and “-”? Because my variable names are the following: