cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti with Liferay Problem

arif
Champ in-the-making
Champ in-the-making
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/ClassLoaderSmiley WinkV


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

help me for this.

Thanks,
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
I think you might have more luck on the LifeRay forums, as we know very little of how Activiti is integrated with LifeRay.