change-set schema location
by grimace
should it be this:
xs:schemaLocation='http://drools.org/drools-5.0/change-set
drools-change-set-5.0.xsd'
or this:
xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'
I don't see an .xsd file at either of those locations.
and I am getting warnings trying to read a change-set file:
(null: 4, 99): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 4, 99): cvc-elt.1: Cannot find the declaration of element
'change-set'.
(null: 6, 9): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
(null: 7, 71): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>.
or this:
(null: 4, 77): SchemaLocation: schemaLocation value =
'http://drools.org/drools-5.0/change-set.xsd' must have even number of
URI's.
(null: 4, 77): cvc-elt.1: Cannot find the declaration of element
'change-set'.
--
View this message in context: http://drools.46999.n3.nabble.com/change-set-schema-location-tp3166854p31...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
decision tables and default rules for case when part of LHS failes for other rules
by Syargey
Hi all,
I have been asked to add default rules to a decision table.
We have a decision table with several conditions. Data from first two
columns are passed to action with binded variables. The action collects data
from all passed rules.
-------------------------------------
condition 1 | condition 2 | ... | action
-------------------------------------
AAA | AD | ... | X
-------------------------------------
BBB | AD | ... | X
-------------------------------------
BBB | AE | ... | X
-------------------------------------
BBB | CC | ... | X
-------------------------------------
CCC | AD | ... | X
-------------------------------------
DDD | AD | ... | X
-------------------------------------
BBB | AE | ... | X
-------------------------------------
... | ... | ... | X
-------------------------------------
Recently business asked me if it is possible to have default rules (rows) in
the table if there is not any rule passing condition 1.
-------------------------------------
DEFAULT | AD | ... | X
-------------------------------------
DEFAULT | AE | ... | X
-------------------------------------
Is it possible to have rules in decision table those can be fired only if a
specific part of LHS never occurs in others rules?
Thanks in advance,
Syargey
--
View this message in context: http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-c...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
RuleSet (RuleFlowGroup)
by rchemisa
Hello,
I'm trying tp understand how does the Rule Set works and I'm experiencing
some problems. I need it to stop
when the process finds a 'rule set' and it doesn't match with the
conditions, however, the process continues even the facts do not fulfill the
conditions.
Can someone explain me how does the 'rule set' works or can u give an
example?
thank you very much
--
View this message in context: http://drools.46999.n3.nabble.com/RuleSet-RuleFlowGroup-tp3165058p3165058...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Serializing knowledgepackages - execution behaviour
by FrankVhh
Hi all,
After playing with serializing knowledgepackages a bit, I stumbled upon some
behaviour which I cannot explain at the moment. I can only hope someone can
deliver a hint of insight into this.
The situation:
Creating and executing a rule engine with the very same rules. In the first
attempt, rules are serialized first. Note that only the rules are
serialized, not the engine.
In the second attempt, the "normal" (= "as in the hello world sample")
procedure is used to feed the rules to the engine.
I noticed some performance differences at execution time, which amaze me a
bit, as I can't see a reason why execution would differ...
When loading the serialized rules, rule execution is slightly slower and,
more important, there are some glitches in the performance (execution times
over 10 times slower than average execution). Unserialized rules run much
smoother and much more consistent.
Does anyone have any explanation for this? I am very interested to find out.
Thanks a lot.
Regards,
Frank
--
View this message in context: http://drools.46999.n3.nabble.com/Serializing-knowledgepackages-execution...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Re: [rules-users] Rule error
by FrankVhh
Hi,
It depends upon which version of drools you are using, but if it is a
version pre 5.2.0, than your last line should be:
eval($c.getDoMin()>=$m.getDoMin())
If you are using 5.2.0, the parser allow a bit more freedom, allthough I am
not sure about this very case. You surely will have to omit the ; at the end
of your condition.
Regards,
Frank
michou89 wrote:
>
> rule "ValidMechanism"
> when
> $c : Capacity(doMin>20)
> $m : Mechanism(DMOMax<=30, doMax>50 && doMin<40 && maxPower>180 &&
> minPower>=100 && bidPower>100 && <200)
> $c.getDoMin()>=$m.getDoMin();
> then
> System.out.println("Capacity n°"+$c.getIdCapacity()+" eligible to the
> mechanism n°"+$m.getIdMechanism()+" for rule 1" );
> end
>
>
> My error : org.drools.rule.InvalidRulePackage: [40,15]: unknown:40:15
> mismatched token: [@100,813:814='>=',<78>,40:15]; expecting type THEN
> (this is the last line before the "then")
>
>
> I don't understand why I can't compare 2 values.
>
--
View this message in context: http://drools.46999.n3.nabble.com/Rule-error-tp3162619p3165771.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
repository in 5.2.M2 crashes in 5.2.Final because of decision table serialization
by Vincent LEGENDRE
Hi all
We tried to use the 5.2.Final version of Guvnor, but the compilation fails with an error saying that class "dtable" does not exists.
After looking more depply, it appears that the XML storage format has changed in 5.2.Final :
- root XML is now " decision-table52 " instead of "dtable"
- pattern is now " org.drools.guvnor.client.modeldriven.dt52.Pattern52 " with some condition-column grouped by fact, instead of independant condition-column
- pattern is now " org.drools.guvnor.client.modeldriven.dt52.Pattern52 " with some condition-column grouped by fact, instead of independant condition-column
- actions is now " insert-fact-column 52" instead of the same thing without version in it, but this time no structure changes ...
Is there a way to migrate old tables to new format ?
Changing a repository.xml by subtitutions is OK ?
Do we have to plan such problems for future versions ?
14 years, 8 months
How to Access and Execute Rules from Database
by Ashish Soni
Hi All ,
I am able to configure oracle database in drools but now i am not able to
find how can i load rules from the DB and execute them , I gone through the
documentation but not able to get much information or might be i am missing
something.
If any one can provide me a example or some pointer ,hints then it would be
helpful.
Regards,
Ashish
14 years, 8 months