Re: [rules-users] Persistence in fireUntilHalt() loop

2012-09-19 Thread crvdmerwe
Has this been resolved in any official version of DROOLS/JBPM? I have a similar problem (spring/hibernate/Drools/JBPM) - transaction does not persist processinfo - I am trying to ascertain whether 1) This indeed is a problem (or whether I have to rather look at configuration) - although I agree

Re: [rules-users] rules file character encoding and spring

2012-09-19 Thread Wolfgang Laun
Something like ?xml version=1.0 encoding=utf-8? which should be present on any XML file... On 19/09/2012, Joachim Van der Auwera joac...@progs.be wrote: I have a rules description like this: drools:kbase id=bodKBase drools:resources drools:resource type=DRL

Re: [rules-users] rules file character encoding and spring

2012-09-19 Thread Joachim Van der Auwera
Maybe I was not clear. The XML is parsing just fine. The problem is with the parsing of the drl file. I think it would be useful to be able to indicate the character encoding which is used for the drl file. Is there a way to specify this using the spring configuration? Kind regards, Joachim

Re: [rules-users] rules file character encoding and spring

2012-09-19 Thread Wolfgang Laun
I don't think it can. Perhaps the best way would be to write the DRL so that its character set is not subject to misinterpretation by an encoding selected due to some locale setting. Which characters cause the problems? -W On 19/09/2012, Joachim Van der Auwera joac...@progs.be wrote: Maybe I

Re: [rules-users] rules file character encoding and spring

2012-09-19 Thread Joachim Van der Auwera
Accented characters cause problems, for example éèë Kind regards, Joachim On 19-09-12 13:42, Wolfgang Laun wrote: I don't think it can. Perhaps the best way would be to write the DRL so that its character set is not subject to misinterpretation by an encoding selected due to some locale

Re: [rules-users] rules file character encoding and spring

2012-09-19 Thread Wolfgang Laun
That much is clear, but are they part of String literals? Or identifiers? For String literals, consider using the Unicode escape (\u) or import them from Java public final statics. -W On 19/09/2012, Joachim Van der Auwera joac...@progs.be wrote: Accented characters cause problems, for

[rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread tosmun
Hi All, I am having a very strange issue with my knowledge base... I have the following Rule: ... rule root_host no-loop true ruleflow-group 'initialize-appliance-definitions' when $app:ApplianceType ( type == ApplianceTypeIdentifier.APPLIANCE_ROOT );

Re: [rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread Wolfgang Laun
The stack trace is suggestive of more complexity than you describe with this simple rule and class. mergePackage, removeRule: these methods aren't called due to a simple fireAllRules() after inserting a few facts. What's really going on here - some dynamic reconfiguration of the KB? -W On

Re: [rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread tosmun
Thanks for the fast response! I'll attempt to post as much as I can, splicing out any case specific info. The Java code surrounding my invocation is as follows: = //Get a list of all knowledgebase resources ListFile kbList = config.getCompleteKBList(); //Note that

Re: [rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread Davide Sottara
It reminds me of a bug which surfaced a couple of weeks ago. Mario Fusco should have already fixed it, at least in the latest version... which version are you using? The fix may need backporting. Davide -- View this message in context:

Re: [rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread tosmun
I am using 5.4.0 Final Downloaded about a month ago. From drools-core-5.4.0.Final.jar: Specification-Title: Drools :: Core Specification-Version: 5.4.0.Final -- View this message in context:

Re: [rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread Davide Sottara
Well.. if you remove that line you are not including your rules in the knowledge base :) But the problem is as suspected, a fix was not back-ported. You can either use 5.5 or wait for Mario to follow up shortly with the patched 5.4 Best Davide -- View this message in context:

Re: [rules-users] Issue with From Clause - Class Cast Error

2012-09-19 Thread tosmun
Great! Thanks so much Davide (and laune). Cheers, Taylor -- View this message in context: http://drools.46999.n3.nabble.com/Issue-with-From-Clause-Class-Cast-Error-tp4019846p4019854.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Capturing DDLs from Guvnor

2012-09-19 Thread dme1
Hi, I have configured Guvnor to work with Oracle. With this configuration I can see that Guvnor uses my Oracle Database as the datastore, and creates the necessary tables in the Oracle database. I want to capture the Oracle DDLs that Guvnor (Jackrabbit) builds to create the table in the Oracle

Re: [rules-users] Capturing DDLs from Guvnor

2012-09-19 Thread Michael Anstis
Look in the org.apache.jackrabbit.core.persistence.db package in jackrabbit-core-2.2.8.jar for DDLs for the databases supported by JackRabbit. On 19 September 2012 21:22, dme1 meh...@hotmail.com wrote: Hi, I have configured Guvnor to work with Oracle. With this configuration I can see that

[rules-users] planning difficulty problem

2012-09-19 Thread Ricardo
For example , I have 10 doctors planning for 3 hospitals in three shifts, each hospital take maximum limit of 3 doctors only, In this case I have one remaining doctor unassigned. My doubt is how planner handle this data? will it be rejected or consider in other cycle or overwrite the planner