[rules-users] PackageBuilderConfigurations and RuleFlows Drools 5

Kris Verlaenen kris.verlaenen at cs.kuleuven.be
Fri Nov 21 08:46:14 EST 2008


Keith,

This issue has already been fixed on the trunk version a while ago, as a 
ProcessBuilder now reuses the package builder configuration.  So it will be 
part of the M3 release.

Kris

----- Original Message ----- 
From: "keithnielsen" <keithnielsen at discover.com>
To: <rules-users at lists.jboss.org>
Sent: Wednesday, November 19, 2008 4:30 PM
Subject: [rules-users] PackageBuilderConfigurations and RuleFlows Drools 5


>
> I have the following code:
>
> PackageBuilder packageBuilder = null;
> Properties properties = new Properties();
> properties.setProperty( "drools.dialect.java.compiler","JANINO" );
> PackageBuilderConfiguration cfg = new PackageBuilderConfiguration(
> properties );
> //error was thrown here complaining about JDT Core not being on classpath
> prior to me creating
> //configuration and adding Janino jar file to classpath of the plug-in
> packageBuilder = new PackageBuilder(cfg);
>
> .
> .
> .
> packageBuilder.addRuleFlow(source);
>
> I receive the "The Eclipse JDT Core jar is not in the classpath" error
> message.
> I was wondering why since I had created a PackageBuilderConfiguration and
> added it to the packagebuilder.
> Stepping through the code it appears that the call stack looks like the
> following:
>
> packageBuilder.addRuleFlow(source);
> ProcessBuilder.addProcessFromFile(.....);
> PackageBuilderConfiguration.init(....);
>
> Question is why is the ProcessBuilder not using the
> PackageBuilderConfiguration created previously and set on the package
> builder and instead creating a new instance? I don't have anywhere to
> configure the ProcessBuilder since this is internal to the call on the
> packageBuilder.addRuleFlow
>
> Thanks
>
> -- 
> View this message in context: 
> http://www.nabble.com/PackageBuilderConfigurations-and-RuleFlows-Drools-5-tp20582230p20582230.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users 




More information about the rules-users mailing list