cancel
Showing results for 
Search instead for 
Did you mean: 

Drools integration issues in Activiti-Explorer-5.17

newbie1
Champ in-the-making
Champ in-the-making
Hi,

I am trying to use drools in a BusinessRuleTask and getting this error - deployment — doesn't contain any rules. I copied all the jar files mentioned in this post - http://forums.activiti.org/content/unable-connect-activiti-drools into apache-tomcat-7.0.61\webapps\activiti-explorer\WEB-INF\lib. I also test that rule was correct and was able to load in standalone rule-engine test.

I did change activiti-custom-context.xml file to include following property :

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

What else could be the issue for explorer to not find rules in deployment ?

thanks
9 REPLIES 9

newbie1
Champ in-the-making
Champ in-the-making
Property added to xml file -
<property name="customPostDeployers">
         <list>
           <bean class="org.activiti.engine.impl.rules.RulesDeployer" />
         </list>
</property>

jbarrez
Star Contributor
Star Contributor
Do you see the resource being listed in ACT_GE_BYTEARRAY?

emihernandez
Champ in-the-making
Champ in-the-making
Hi,
i'm in the same situation, trying to get the example running.

i'm using the same version 5.17.0 and drools 5.5.0.Final

i have already added the 3 .jar the the classpath (Knowledge, drools-core, and drools-compiler )

At this point i can do the deploy in activity explorer, and start the process, but when the process reaches the BusinessRuleTask i'm getting this error: " deployment — doesn't contain any rules "

When i try to add the lines mencioned above:
<. property name="customPostDeployers" >
  <. list >
    <. bean class="org.activiti.engine.impl.rules.RulesDeployer" />
  <. /list>
<. /property>

The activiti-explorer crahes.
I notice that the file activiti-custom-context.xml it's all comented, and perhaps this is not what I have to do.

In this question: http://forums.activiti.org/comment/21118#comment-21118
trademak say that the BusinessRuleTask in 5.14 is not supported anymore, and i don't know if this continues in version 5.17.0 or if the BusinessRuleTask should work as expected.

Please, can anyone help me? Thanks a lot!

The txt file attached is a false extension, remove the last part ".txt" leaving only "testDrool No Rules Found.zip" to get the code

jbarrez
Star Contributor
Star Contributor
That comment referes to something else (< 5.14 the implementation was different).

I checked your zip, but it refers to a lot of jars on your machine

(Description Resource Path Location Type
Project 'activiti-examples' is missing required library: 'C:/Users/Martin/Desktop/lib17/activiti-process-validation-5.17.0.jar' activiti-examples  Build path Build Path Problem)

What do you mean with explorer 'crashes'. Surely there must be a stacktrace?

mohammed8960
Champ in-the-making
Champ in-the-making
the same issue with me. it sounds like BusinessRuleTask is not supported anymore. please any one can help

jbarrez
Star Contributor
Star Contributor
"it sounds like BusinessRuleTask is not supported anymore. "

It is. What makes you think it isn't?
What have you tried doing that fails?

mohammed8960
Champ in-the-making
Champ in-the-making
i tried the same bar with Activiti 5.14 after adding the required jars and the following property "customPostDeployers" to class "org.activiti.engine.impl.rules.RulesDeployer"
with  processEngineConfiguration bean in activiti-standalone-context.xml file inside Activiti Explorer and working fine .

when i tried the same example with Activiti 5.20 always gives me deployment xxx no rules found.

added to that in Activiti 5.20 after adding the required jars i didn't find processEngineConfiguration bean to add the required property.

your fast feedback are highly appreciated

jbarrez
Star Contributor
Star Contributor
You configure the process engine config in activiti-custom-context.xml/

mohammed8960
Champ in-the-making
Champ in-the-making
yes and working fine after modifying activiti-custom-context.xml

Thank you