AnsweredAssumed Answered

Activiti with Liferay Problem

Question asked by arif on Dec 25, 2012
Latest reply on Dec 26, 2012 by jbarrez
Hi Friends,

I am implementing small process with liferay for approving web content.

This my process script

<scriptTask id="scripttask1" name="Approve" scriptFormat="LiferayJavaScript">

     user =;
     roles = user.getRoleIds();
     outputTransition = "denied";
      for (i = 0; i < roles.length; i++) {
         if (roles == 15) {
               outputTransition = "approved";
        }              (, workflowContext);]]>

But when i execute this script it say me some error like
Caused by: java.lang.NoSuchMethodError: com.liferay.portal.kernel.scripting.ScriptingUtil.exec(Ljava/util/Set;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/ClassLoader;)V

Is it any other configuration required for executing LiferayJavaScript in liferay.

help me for this.