AnsweredAssumed Answered

Activiti Task Script - Trying to execute a SQL query (Javascript)?

Question asked by chrisx_212 on Mar 7, 2016
Latest reply on Mar 11, 2016 by jbarrez
Hello. I'd like to ask about how to execute a query which will be used in the Task Script. The format shall be Javascript.

Because when I do it in my computer, it never works, it gives out a Reference Error that the command is not recognized. This is what I used for the import commands:



importPackage(java.sql);
importPackage(java.lang);
importPackage(org.activiti.explorer.reporting);



They give out this message usually: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "java" is not defined.

So how do I do it? Thanks.

Outcomes