Exception while invoking TaskListener: "java" is not defined

cancel
Showing results for 
Search instead for 
Did you mean: 
malekgn
Active Member II

Exception while invoking TaskListener: "java" is not defined

Hello,

I have a workflow that works well on alfresco community 5.2
When I did the migration to Alfresco 7.4 community, I had an error on the taskListener:

ERROR [org.activiti.engine.impl.interceptor.CommandContext] [http-nio-8080-exec-3] 
Error while closing command context org.activiti.engine.ActivitiException: Exception while invoking TaskListener:
Exception while invoking TaskListener: 00230045 Failed to execute supplied script:
00230044 ReferenceError: "java" is not defined. (AlfrescoJS#2)

In the line 2, I have :

var myVar = new java.util.ArrayList();

For information, "new java.util.ArrayList()" works well on the executionListener.

Tanks Smiley Happy