cancel
Showing results for 
Search instead for 
Did you mean: 

How do I enable Drools customPostDeployers in Activiti 5.16.4

expatlee
Champ in-the-making
Champ in-the-making
Hi All,

I was able to enable customPostDeployers  in the Activiti 5.13 in its activiti-standalone-context.xml (see below). However, there is no
activiti-standalone-context.xml in the 5.16.4. How do I do that ?

Thank you

Lee

===================================

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
     <property name="dataSource" ref="dataSource" />
     <property name="transactionManager" ref="transactionManager" />
     <property name="databaseSchemaUpdate" value="true" />
     <property name="jobExecutorActivate" value="true" />
    <property name="customFormTypes">
      <list>
        <bean class="org.activiti.explorer.form.UserFormType"/>
        <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
        <bean class="org.activiti.explorer.form.MonthFormType"/>  
      </list>
    </property>
   
           
            <property name="customPostDeployers">
             <list>
              <bean class="org.activiti.engine.impl.rules.RulesDeployer" />
             </list>
            </property>
      
   
  </bean>
8 REPLIES 8

expatlee
Champ in-the-making
Champ in-the-making
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
   <property name="dataSource" ref="dataSource" />
   <property name="transactionManager" ref="transactionManager" />
   <property name="databaseSchemaUpdate" value="true" />
   <property name="jobExecutorActivate" value="true" />
    <property name="customFormTypes">
      <list>
        <bean class="org.activiti.explorer.form.UserFormType"/>
        <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
        <bean class="org.activiti.explorer.form.MonthFormType"/>  
      </list>
    </property>

         
            <property name="customPostDeployers">
             <list>
              <bean class="org.activiti.engine.impl.rules.RulesDeployer" />
             </list>
            </property>
      

  </bean>

expatlee
Champ in-the-making
Champ in-the-making
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
   <property name="dataSource" ref="dataSource" />
   <property name="transactionManager" ref="transactionManager" />
   <property name="databaseSchemaUpdate" value="true" />
   <property name="jobExecutorActivate" value="true" />
    <property name="customFormTypes">
      <list>
        <bean class="org.activiti.explorer.form.UserFormType"/>
        <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
        <bean class="org.activiti.explorer.form.MonthFormType"/>  
      </list>
    </property>

         
            <property name="customPostDeployers">
             <list>
              <bean class="org.activiti.engine.impl.rules.RulesDeployer" />
             </list>
            </property>
      

  </bean>

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Lee,

I am sorry but I did not understand what do you want to achieve.

Regards
Martin

expatlee
Champ in-the-making
Champ in-the-making
HI Martin,

I was trying to run the ruletask.bar sample from the book Activiti in Action. I was able to run it under Activiti 5.13 but I am issues to config Activiti 5.16.4 to enable customPostDeployers.

<property name="customPostDeployers">
<list>
<bean class="org.activiti.engine.impl.rules.RulesDeployer" />
</list>
</property>

expatlee
Champ in-the-making
Champ in-the-making
In the Activiti 5.13, I can see (from the tomcat console) the Activiti processes the LoanRequestRules.drl using org.activiti.engine.impl.rules.RulesDeployer

But in the Activiti 5.16, the Activiti does not process the LoanRequestRules.drl

expatlee
Champ in-the-making
Champ in-the-making
In the Activiti 5.16, I created activiti.cfg.xml and put it under /classes folder

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
 
    <!– Database configurations –>
    <property name="history" value="audit" />
    <property name="databaseSchemaUpdate" value="true" />
   
    <!– job executor configurations –>
    <property name="jobExecutorActivate" value="false" />
   
    <property name="customPostDeployers">
      <list>
        <bean class="org.activiti.engine.impl.rules.RulesDeployer" />
      </list>
    </property>
   
  </bean>
  <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" destroy-method="destroy">
   <property name="processEngineConfiguration" ref="processEngineConfiguration" />
  </bean>

 
</beans>

jbarrez
Star Contributor
Star Contributor
Is this in a unit test … in Explorer … where is this?

expatlee
Champ in-the-making
Champ in-the-making
In Explorer, and I have fixed it by adding the customPostDeployers to the ActivitiEngineConfiguration.java

Thank you all