ArrayIndexOutOfBoundsException in MVELCompilationUnit
by Stephen Masters
Hi folks,
I seem to have come across an issue with hitting an ArrayIndexOutOfBoundsException:3 during an insert. It seems to depend on how many other facts have already been inserted.
This is on 5.3 Final.
Can anybody give me any pointers on how to diagnose such an issue?
Many thanks
Steve
13 years, 3 months
Re: [rules-users] Unable to download the deployment files pointed in the Guvnor documentation pages.
by milen igrachev
Hi,
the link still seems broken to me, but the other link you gave me did the trick.
Thanks a lot.
Best Regards,
Milen
-------- Оригинално писмо --------
От: Michael Anstis michael.anstis(a)gmail.com
Относно: Re: [rules-users] Unable to download the deployment files pointed
in the Guvnor documentation pages.
До: Rules Users List
Изпратено на: Сряда, 2012, Ноември 21 12:08:20 EET
I have correct the link in the documentation.
5.4.0.Final can be obtained from
http://download.jboss.org/drools/release/ which is included within the the "Other downloads" section of my original link.
On 21 November 2012 09:57, Michael Anstis
michael.anstis(a)gmail.com > wrote:
Hi,
I appears the download link in the documentation is broken.
You can download from here:
http://www.jboss.org/drools/downloads
With kind regards,
Mike
On 21 November 2012 09:38, milen igrachev
igrachev(a)abv.bg > wrote:
Hi,
Let me first say that I am new to Guvnor, but the functionality which it present seems to be really good and just the thing that I need at the moment.
So I decided to give it a try and see it in action. I began to read the documentation and the "Installation" section in it:
http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_... (I am trying to use guvnor-5.4.0)
And there is a link there for deployment files download, which i failed to download since yesterday.
Can you please take a look in it and tell me if the files are moved or if there is a problem with the server they are hosted on?
Big thanks for your support!
Best Regards,
Milen Igrachev
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
13 years, 3 months
expectation for -Ddrools.dump.dir to show DRL error context ..
by Cotton, Ben
Hi,
I thought this worked for me at some point, but, I now seem to have lost my ability to get any debuggable DRL error contexts via the -Ddrools.dump.dir property.
Here is my command line, that simply borrows from the DROOLs sample package's Cheese.xls SpreadsheetCompiler example , to produce a .DRL from an (.XLS, .DRT) input pair:
java com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT \
-Ddrools.dump.dir=./DroolsDumpDir \
../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_FEED_TO_DRT_Template-BASIS.xls \
../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_TEMPLATE-BASIS.drt \
2>&1 | grep -v Picked | \
tee ../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES=RENDERED.drl
This command line produces the following errors:
Error compiling resources:
[ERR 102] Line 923:0 mismatched input ''
[ERR 101] Line 8:60 no viable alternative at input '"LCH US"' in rule "IRD_PRODUCT_RULE_24"
[ERR 101] Line 46:60 no viable alternative at input '"LCH EU. SCM"' in rule "IRD_PRODUCT_RULE_23"
Parser returned a null Package
Exception in thread "main" java.lang.IllegalStateException: Error compiling resources
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.buildKBase(GenerateDRLfromEligibilityRulesRepoViaDRT.java:93)
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.execute(GenerateDRLfromEligibilityRulesRepoViaDRT.java:50)
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.main(GenerateDRLfromEligibilityRulesRepoViaDRT.java:44)
Unfortunately, my ./DroolsDumpDir/ directory contents are completely empty. I was hopeful it might contain a staged .DRL context from which I could more easily debug my roadblock.
Is there more that I have to do, beyond just passing -Ddrools.dump.dir=./DroolsDumpDir on the command line?
Ben D Cotton III
Morgan Stanley & Co.
OTC Derivatives Clearing Technology
1221 AOTA Rockefeller Ctr - Flr 27
New York, NY 10020
(212)762.9094
ben.cotton(a)ms.com<mailto:ben.cotton@ms.com>
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
13 years, 3 months
BRL and Agenda-group
by TonyN
Hi,
I am using Guvnor 5.4 Final and having a hard time getting BRL rules and
agenda group to work. Seems like if I don't assign the agenda-group then
the rules would file, but if I set agenda-group (brl, declaratively) and use
DRL to set the focus, then the rules don't get fired.
Is it possible to use BRL and Agenda-group together or does Agenda-group
only work w/ DRL rules?
I'm wondering if there is something that need to enable or anything?
thx,
--
View this message in context: http://drools.46999.n3.nabble.com/BRL-and-Agenda-group-tp4020883.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Problem sharing declarative model between two packages
by Al
I would like to be able to share a declarative model between two packages.
When I attempt to do this by creating my model in Guvnor's Global Area and
then importing it into each package, I find that instances of the declared
types that are created by rules in one package are not recognized by rules
in the other package.
For example, suppose I create a model in the global area with a declared
type:
declare MyType
field1: String
end
I then import this model into packages "p1" and "p2". I add the following
rule into package "p1":
rule "create it"
when
eval(true)
then
MyType m = new MyType();
insert(m);
end
and I add the following rule into package "p2":
rule "find it"
when
$m : MyType()
then
System.out.println("found it");
end
At runtime, the "create it" rule fires and inserts a "MyType" object.
However, the "find it" rule never fires.
If I add a WorkingMemoryEventListener and look at exactly what is being
inserted, I can see that the "create it" rule is inserting an instance of
p1.MyType. I assume that the "find it" rule is looking for an instance of
p2.MyType and that is why it never fires.
Is there a different way to accomplish this? Or, are declarative models
simply not intended to be shared across packages?
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-sharing-declarative-model-betwe...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Drools benchmarks
by tomdc
Hello,
I'm looking for some statistics on the memory usage and speed of executing
rules when using Drools.
I was wondering if anyone has lately done some benchmarking on Drools 5.X ?
The last results that I keep on stumbling on are from 2009.
If anyone can point me to some recent graphs (or data that can be turned
into a graph) concerning benchmarks on the latest Drools version?
Thanks in advance
TDC
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-benchmarks-tp4020890.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Is Drools Scorecard used only with spreadsheet type?
by Daniel Souza
I was looking for Drools Scorecard in the sources code and I noticed that
have use just for spreadsheet at the ScorecardCompiler class.
We know that it's something new the integration with PMML and I deeply
interested in it.
Is There a way to create directly a DRL type file to work with Drools
Scorecard?
I don't know how PMML work, but I know why PMML is used. It's an interesting
project that will be a good solution.
Maybe if I understand how to compile both I can try myself some tests and if
it's possible to use rules in the traditional way to compile with PMML I
will try too.
--
View this message in context: http://drools.46999.n3.nabble.com/Is-Drools-Scorecard-used-only-with-spre...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Skill requirement not satisfied
by adc
I am running a nurse rostering instance. But the skill requirement is not
satisfied.
I have already checked that:
- For each shift, the Shift/Skills/Skill tag is set with the proper Skill
value.
- For each employee, the Employee/Skills/Skill is set with the proper Skill
value.
- For each DayOfWeekCover, the DayOfShiftCover/Cover/Shift tag is set with
the proper Shift value.
When I run the NurseRosteringPlann, assignments are made. But I see that:
- The skill requirement is not satisfied.
- The best score is reached when all the assignement are made.
Where do I fail? What should I check?
--
View this message in context: http://drools.46999.n3.nabble.com/Skill-requirement-not-satisfied-tp40208...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months