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">

<script><![CDATA[     
     user = Packages.com.liferay.portal.service.UserLocalServiceUtil.fetchUser(10382);
     roles = user.getRoleIds();
     outputTransition = "denied";
      for (i = 0; i < roles.length; i++) {
         if (roles == 15) {
               outputTransition = "approved";
               break;
          }
        }
Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus              (Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus(outputTransition), workflowContext);]]>
</script>
    </scriptTask>



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.

Thanks,

Outcomes