AnsweredAssumed Answered

Unable to connect Activiti with drools

Question asked by deepakchoudhary on May 30, 2013
Latest reply on Nov 4, 2015 by ricardolegorreta
I want to integrate drools rules with activiti and on deploying my .BAR file (which contains .drl file also) I get an error message Deployment xxxx does not contain rules.
I am new to java, activiti and drools.

I have followed the steps on the thread http://forums.activiti.org/content/businessruletask-deploy-error.
therefor I have added these jars to /path/to/webapps/activiti-explorer/WEB-INF/libs/ as well as to the maven dependencies in my project:
drools-api-5.1.1.jar
droools-core-5.1.1.jar
drools-compiler-5.1.1.jar
mvel2-2.1.0.drools.jar


Also I have edited the applicationContext.xml file  in /path/to/webapps/activiti-explorer/

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
   xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jee="http://www.springframework.org/schema/jee"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
       http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd">
      
  <import resource="activiti-standalone-context.xml" />
  <import resource="activiti-ui-context.xml" />
   <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
      <property name="databaseSchemaUpdate" value="true" />
      <property name="customPostDeployers">
         <list>
            <bean class="org.activiti.engine.impl.rules.RulesDeployer" />
         </list>
      </property>
   </bean>
</beans>

I have created a simple project using eclipse with a bpmn file and a business rule.
After deploying when I start the process and the user fills the form an error occurs- Deployment xxxx does not contain rules.
The user at the thread I have mentioned above suggested to read chapter 12 of the book- activiti in action, but I could not understand much of it. For eg in which directory should I include the java code, mentioned in the book, with my project.
Any help would be highly appreciated.

Outcomes