JBoss Community

Re: JBPM and Drool sample application throwing an Exception.

created by Subhas Sing in jBPM - View the full discussion

Thanks Felix and Maciej.

 

Delete all jars except as following

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

log4j.jar

mail.jar

slf4j-api-1.5.8.jar

slf4j-log4j12.jar

spring.jar

 

Copy these following jars from jBPM 4.4 distribution

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

antlr-runtime.jar

antlr.jar

commons-collections.jar

core.jar

dom4j.jar

drools-api.jar

drools-compiler.jar

drools-core.jar

hibernate-core.jar

hsqldb.jar

javassist.jar

jbpm.jar

jta-1.1.jar

juel-api.jar

juel-engine.jar

juel-impl.jar

mvel2.jar

 

Change the code as per Maciej

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

 

repositoryService.createDeployment().addResourceFromClasspath("hello_world.jpdl.xml").
addResourceFromClasspath("checkAnalystAvailable.drl").
 
deploy();

 

rule "checkAnalystAvailable"
 
  when
 
    analystFinder : com.felix.poc.AnalystFinder( analyst=="FELIX", 
region == "BELGIUM" )
 
  then 
 
     analystFinder.setAnalystAvailable( true );
 
     System.out.println( "Checking.........." );
 
end

Reply to this message by going to Community

Start a new discussion in jBPM at Community