Example on Rule task

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

Example on Rule task

In activit BPMN i'm not able to find examples on rule task. And one example I tried but it gave the below exception

java.lang.NoClassDefFoundError: org/drools/runtime/rule/AgendaFilter.

So, can anyone able to tell or share the information regarding how to work with business rules in activiti.

3 Replies
bassam_al-saror
Alfresco Employee

Re: Example on Rule task

Seems you are missing some drools dependencies. org/drools/runtime/rule/AgendaFilter is part of knowledge api module Maven Repository: org.drools » knowledge-api 

vikramas
Member II

Re: Example on Rule task

I solved the above exception by deploying dependencies in activiti-explorer/WEB-INF folder. But now I'm getting org.activiti.engine.ActivitiException: deployment 1613 doesn't contain any rules. But if i unzip the bar file I can see .drl and and bpmn.xml file , that only I deployed. And I have deployed jar file of model class in web/inf folder. I'm not getting why it is not getting drl file.

Can anyone suggest me how to deploy the business rule task

banerjeemanoj
Member II

Re: Example on Rule task

Hi, 

 

Did you able to solve the issue? I am currently having the same issue "org.activiti.engine.ActivitiException: deployment 1613 doesn't contain any rules" , if you solved it could you please let me know how you resolved it ?