jschmied | 9 Feb 11:44
Picon

[rules-dev] build error in docs


Hi!

Im trying "mvn package" in the "trunk\drools-docs" subdir (fresh checkout)
and get:

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between
'Vertex{label='org.drools:docbook-xsl-drools'}' and 'Vertex{labe
l='org.drools:docbook-style-drools'}' introduces to cycle in the graph
org.drools:docbook-style-drools --> org.drools:docbook-xsl-drools -->
 org.drools:docbook-style-drools
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Feb 05 13:10:01 CET 2010
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------

I found this problem aked before here but no real solution.

Thanks

Juergen

--

-- 
View this message in context: http://n3.nabble.com/build-error-in-docs-tp196316p196316.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

jschmied | 9 Feb 11:43
Picon

[rules-dev] Bug in Sudoku Example - with fix


Hi!

I found a bug in the rule 6,7 and 8 in the sudoku example:

It should not only test against the PCV but against the RCV too:

Rule 6:
# the not operator only causes this when clause to resolve to true when
there are not
# any other PCVs or RCVswith the same row and value as $possible
not (PossibleCellValue( row == $row, value == $value ) || ResolvedCellValue(
row == $row, value == $value) )

7 and 8 are similar.

juergen 
--

-- 
View this message in context: http://n3.nabble.com/Bug-in-Sudoku-Example-with-fix-tp196315p196315.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Hitoshi Ozawa | 7 Feb 13:38
Picon

[rules-dev] Eclipse IDE BRMS properties files

I'm trying to translate the properties files for the Drools BRMS
portion of the Eclipse IDE but can't find the properties files nor
able to grep the Strings.
Would greatly appreciate if you'll direct me to finding the where the
Strings are defined.

Thanks.
H.Ozawa
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

gazzaaa87 | 4 Feb 17:01
Picon
Favicon

[rules-dev] Executing on a arbitrarily complex object


Hi all,

I am using a StatelessKnowledgeSession and therefore call the execute method
to invoke the rules engine. Having carried out a basic test, it would appear
that calling execute on an arbitrarily complex object does not insert child
objects, rather rules will only fire if they are based on the parent.

e.g. let's say you have a class called 'Father', which holds a collection of
'Child' objects. By calling session.execute(fatherObject) I need rules to
fire that use the Child pattern without having to loop through 'insert'ing
all the child elements manually.

Has anyone come across a way around this? The only thing I managed to find
was the use of a Batch Executor but you have to set that up before calling
execute and therefore it's still effectively a manual process.

If only Drools used java annotations, it would be ideal to specify behaviour
similar to cascade with JPA.

Any help or pointers much appreciated!

Dan
--

-- 
View this message in context: http://n3.nabble.com/Executing-on-a-arbitrarily-complex-object-tp187271p187271.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Mark Proctor | 1 Feb 23:09

[rules-dev] Open Source Healthcare Event (last week of March)

http://blog.athico.com/2010/02/open-source-healthcare-event-last-week.html

Last November I bloggged about the great news for collaboration on Drools between the US Navy and OSDE (Argentinian health care). This is with a focus of potentially enabling Drools as an important component for the Open Source Healthcare Connect project, which provides a gateway into NHIN.

Since then we've had other heath care organisations show an interest in getting involved at some level. So it made sense that we should potentially organise another event, similar to last years boot camp, but specifically for the healthcare community.

The event will cover the usual intro into Drools, along with additional talks on the recent developments of Drools; such as our simulation/testing frameworks and service frameworks. We would ideally like to keep this industry and academic research focused. That means we will need as many third party industry and academic research talks as possible and break out sessions to discuss requirements and potential collaborations.

So whether you want to come along and tell the world about your research projects, requirements and ideas or just see what others are up to, or just find out what Drools is about, this should be a useful event for anyone in the healthcare industry.

If this interests you, either as an attendee or a presenter, then please let me know. The date is quite soon, tentatively last week of March and at the Duke University in North Carolina for 3 days.

Mark
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Esteban Aliverti | 1 Feb 15:46
Picon

[rules-dev] Using Smart GWT library in Guvnor

Hi all,

Baunax and I are making some improvements in Guvnor's rule editor (from/collect/accumulate support, expression builder widget, etc.) and we want to start using Smart GWT (http://www.smartclient.com/). This library is the successor of GWText (the one Guvnor is using now). You can see this in GWText home page http://code.google.com/p/gwt-ext/.
Some of the reasons we have to move to Smart GWT are:
  • GWTExt is deprecated. It is no longer under active development.
  • Smart GWT is under LGPL license (just like GWTExt)
  • Smart GWT support any version of GWT (from 1.5.3 to 2.0). There shouldn't be any problem when we start using GWT 2.xx
  • Smart GWT has a lot of widgets, effects, layouts etc. that can make our life easier ;).
Of course we are not going to migrate Guvnor to Smart GWT; we want just to use it for the new features we are implementing.

So, are you guys agree? Does anyone have any objection?  

We are currently working on guvnor_expressionEditor3_baunax_esteban branch.

Best,

--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
@ndré | 30 Jan 15:23
Gravatar

[rules-dev] Trouble using constants to access Maps


Hi all!

I'm writing a rule that contains the following statement:

$agreementOffer:AgreementOffer($logicalFixedNumber:configurationParameters["6410"])

This results of this is not surprisingly that both $agreementOffer and
$logicalFixedNumber get assigned a value. 
Instead of using the "magic value" 6410, I want to use ParameterId constant
class, which implements the toString() to return the value.

I have tried several different ways to refer to the constant but without
luck. The errors says: 

Unable to create Field Extractor for
'configurationParameters[ParameterId.LOGICAL_NUMBER_FIXED]
I have also tried to extract the value of the
ParameterId.LOGICAL_NUMBER_FIXED into a local variable, which I can see
prints the correct value, but the error says the same: 

Unable to create Field Extractor for
'configurationParameters[$logicalNumberFixedConstant]

Do anyone understand what is happening here and what I do wrong? 

I'm are still on the JKD 1.4, and uses MVEL 1.3

Thanks, 

@ndré
--

-- 
View this message in context: http://n3.nabble.com/Trouble-using-constants-to-access-Maps-tp178720p178720.html
Sent from the Drools - Dev mailing list archive at Nabble.com.

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Barry Kaplan | 27 Jan 02:22

[rules-dev] Problems with latests 5.1.SNAPSHOT


Before the lastest snapshot I had rules like:

rule "Device is NotOperating" dialect "mvel"
when
  device: Device(connected == true)
  ...
then
  insertLogical(
    DeviceOperatingStateTimeline.start(new DeviceOperatingState(device.id,
NotOperating()))
  )
end

Now I get the error:

Caused by: [Error: unable to access property (null parent): device]
[Near : {... Unknown ....}]

If I simply reference the 'device' variable before the insertLogical then
the rule compiles and works:

then
  Device d = device // System.out.println(device) works as well
  insertLogical(
    DeviceOperatingStateTimeline.start(new DeviceOperatingState(device.id,
NotOperating()))
  )
end

I don't even know where to begin to look for such a cause. I've debugged
deep in the MVEL compilation but no joy. 

Also, many of my other rules no longer compiler, also seemingly mvel
related. I've thunked back to 5.0.1 and now I have green bars again.

-barry 
--

-- 
View this message in context: http://n3.nabble.com/Problems-with-latests-5-1-SNAPSHOT-tp140043p140043.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Geoffrey De Smet | 17 Jan 20:02
Picon

[rules-dev] OSGi ready commit gives problems

Hi guys,

The OSGi ready commit on trunk of a couple of days ago, changed many 
pom.xml files, including the Drools core and Drools Planner pom.xml's.

For example, something like this:

<dependency>
   <groupId>commons-lang</groupId>
   <artifactId>commons-lang</artifactId>
</dependency>

Became:

<dependency>
   <groupId>org.apache.commons</groupId>
   <artifactId>com.springsource.org.apache.commons.lang</artifactId>
</dependency>

See for example this pom.xml file:
http://fisheye.jboss.org/browse/JBossRules/trunk/drools-planner/drools-planner-core/pom.xml?r1=30817&r2=31054

This gives rise to 2 problems:

1) It uses different groupId:artifactId's!
The ramifications of this are big & very backward incompatible:
Lets say project X depends on drools:
- X excludes commons-lang:commons-lang from the drools dependency, now 
he'll get it anyway, because 
org.apache.commons:com.springsource.org.apache.commons.lang is something 
else
- X depends on commons-lang:commons-lang, now he'll get it twice
- X depends on commons-lang:commons-lang in a different version, now 
he'll get it twice and maven will not get a change to do version 
conflict resolution (picking the highest), now he'll get it twice
and drools might end up being run with a too low commons-lang version!

Remember: most users don't use OSGi and don't like a "com.springsource" 
in their artifactId's.

2) Build problems too apparently:

<nheron> Project ID: org.drools.planner:drools-planner-core
<nheron> POM Location: 
/home/nheron/workspace-IntellJ-planner/drools-planner-core/pom.xml
<nheron> Validation Messages:
<nheron>     [0]  'dependencies.dependency.version' is missing for 
org.apache.commons:com.springsource.org.apache.commons.lang
<nheron>     [1]  'dependencies.dependency.version' is missing for 
org.apache.commons:com.springsource.org.apache.commons.io
<nheron>     [2]  'dependencies.dependency.version' is missing for 
com.thoughtworks.xstream:com.springsource.com.thoughtworks.xstream

Because it is backward incompatible, I propose to shelve the OSGi ready 
changes till drools 6.0?

--

-- 
With kind regards,
Geoffrey De Smet

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Peter Sellars | 14 Jan 05:05
Picon

[rules-dev] Drools trunk build issue - any info?


I have been trying to synchronize and get my patch to work with the latest
version of Drools 5.1.0.SNAPSHOT code from
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk without success.

I tried the same snapshot build on another of the Tohu projects that didn't
use the new patched code and got the same error.

I had tried to build the whole JBoss snapshot from the root pom. Had
encountered several issues due to dependency issues. What would you advise
in these circumstances? I can roll back my local version to a version that
works with the patched code (but then this will not work with the next
version containing the current changes as it is).

I have included the error below....(may give someone more info about the
issue).

org.drools.runtime.rule.ConsequenceException: rule: LoyaltyCard

        at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handl
eException(DefaultConsequenceExceptionHandler.java:23)
        at org.drools.common.DefaultAgenda.fireActivation
(DefaultAgenda.java:981
)
        at org.drools.common.DefaultAgenda.fireNextItem
(DefaultAgenda.java:918)
        at org.drools.common.DefaultAgenda.fireAllRules
(DefaultAgenda.java:1130)

        at org.drools.common.AbstractWorkingMemory.fireAllRules
(AbstractWorkingM
emory.java:739)
        at org.drools.common.AbstractWorkingMemory.fireAllRules
(AbstractWorkingM
emory.java:705)
        at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules
(StatefulKno
wledgeSessionImpl.java:200)
        at org.drools.command.runtime.rule.FireAllRulesCommand.execute
(FireAllRu
lesCommand.java:56)
        at org.drools.command.runtime.rule.FireAllRulesCommand.execute
(FireAllRu
lesCommand.java:13)
        at org.drools.runtime.impl.BatchExecutionImpl.execute
(BatchExecutionImpl
.java:35)
        at org.drools.runtime.impl.BatchExecutionImpl.execute
(BatchExecutionImpl
.java:15)
        at org.drools.impl.StatefulKnowledgeSessionImpl.execute
(StatefulKnowledg
eSessionImpl.java:826)
        at org.drools.impl.StatefulKnowledgeSessionImpl.execute
(StatefulKnowledg
eSessionImpl.java:811)
        at org.drools.runtime.pipeline.impl.ExecutorStage.execute
(ExecutorStage.
java:29)
        at org.drools.runtime.pipeline.impl.ExecutorStage.receive
(ExecutorStage.
java:19)
        at org.drools.runtime.pipeline.impl.BaseEmitter.emit
(BaseEmitter.java:31
)
        at
org.drools.runtime.pipeline.impl.XStreamFromXmlTransformer.receive(XS
treamFromXmlTransformer.java:47)
        at org.drools.runtime.pipeline.impl.BaseEmitter.emit
(BaseEmitter.java:31
)
        at
org.drools.runtime.pipeline.impl.StatefulKnowledgeSessionPipelineImpl
.insert(StatefulKnowledgeSessionPipelineImpl.java:40)
        at drools.rex.SessionExecutor$.execute(SessionExecutor.scala:26)
        at drools.rex.Server.execute(Server.scala:32)
        at drools.rex.StatefulServer.doPost(Server.scala:75)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:487
)
        at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:3
62)
        at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.jav
a:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:1
81)
        at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:7
26)
        at org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)

        at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHand
lerCollection.java:206)
        at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.
java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:50
5)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnectio
n.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.ja
va:395)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.j
ava:488)
Caused by: [Error: drools.insertLogical(questionnaire): null]
[Near : {... Unknown ....}]
             ^
[Line: 1, Column: 0]
        at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGet
Chain(ReflectiveAccessorOptimizer.java:373)
        at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAc
cessor(ReflectiveAccessorOptimizer.java:138)
        at org.mvel2.ast.ASTNode.getReducedValueAccelerated
(ASTNode.java:133)
        at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
        at org.mvel2.compiler.CompiledExpression.getValue
(CompiledExpression.jav
a:104)
        at org.mvel2.MVEL.executeExpression(MVEL.java:995)
        at org.drools.base.mvel.MVELConsequence.evaluate
(MVELConsequence.java:87
)
        at org.drools.common.DefaultAgenda.fireActivation
(DefaultAgenda.java:972
)
        ... 39 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(
ReflectiveAccessorOptimizer.java:930)
        at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGet
Chain(ReflectiveAccessorOptimizer.java:315)
        ... 46 more
Caused by: java.lang.NullPointerException
        at org.drools.reteoo.CollectNode.modifyTuple(CollectNode.java:354)
        at org.drools.reteoo.CollectNode.assertObject(CollectNode.java:259)
        at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject
(Singl
eObjectSinkAdapter.java:42)
        at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:147)
        at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(
CompositeObjectSinkAdapter.java:360)
        at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(Co
mpositeObjectSinkAdapter.java:337)
        at org.drools.reteoo.ObjectTypeNode.assertObject
(ObjectTypeNode.java:184
)
        at org.drools.reteoo.EntryPointNode.assertObject
(EntryPointNode.java:147
)
        at org.drools.common.AbstractWorkingMemory.insert
(AbstractWorkingMemory.
java:1135)
        at org.drools.common.AbstractWorkingMemory.insert
(AbstractWorkingMemory.
java:1086)
        at org.drools.base.DefaultKnowledgeHelper.insertLogical
(DefaultKnowledge
Helper.java:129)
        at org.drools.base.DefaultKnowledgeHelper.insertLogical
(DefaultKnowledge
Helper.java:123)
        ... 52 more

Regards,

Peter Sellars
Senior Developer
Solnet Solutions Limited
Level 7, Brookfields House
19 Victoria Street, Auckland 1010, New Zealand
PO Box 6619, Auckland 1141, New Zealand
DDI: +64 9 977 5808  Mobile: +64 21 809 009
Main: +64 9 977 5800 Fax: +64 9 977 5801

www.solnetsolutions.co.nz
A Solnet Group Company

Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster <at> solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Mark Proctor | 13 Jan 11:23

[rules-dev] Fwd: Author Drools Book-Packt Publishing

Seems there might be a 3rd packet book. any takers? :)

Mark

-------- Original Message -------- Subject: Date: From: To:
Author Drools Book-Packt Publishing
Wed, 13 Jan 2010 15:41:51 +0530
Sayama Waghu <sayamaw <at> packtpub.com>
mproctor <at> codehaus.org


Hi , I’m writing to you for Packt Publishing, the publishers of computer related books. We are planning to publish a new book on Drools, titled, Drools Developer Cookbook.While looking out for some potential authors to write this book, I came across your profile and saw. that you were one of the contributor and I also see that you write blogs on Drools.These give me an impression that you could be a potential author for this book. Written in a cookbook style, this book will be aimed at Java developers who already have experience of working with Drools and would like to learn how to do more stuff with it. To give you an idea about the way things work at Packt: -The editorial team at Packt works with the author throughout the project -We pay a royalty of 16% and an advance against it. -The marketing team at Packt ensures that the book is well promoted. -In its ongoing commitment to Open Source, Packt donates a percentage of revenue generated by the book to the OpenSource project on which it is based. We have donated more than 100 000 dollars to various Open Source projects since inception in 2004. Could you please let me know if you find it interesting to author this book? Thanks. -- -- *Sayama Waghu* Author Relationship Executive Packt Publishing www.PacktPub.com <http://www.PacktPub.com> Skype: sayama_packt MSN: sayamaw <at> packtpub.com Interested in becoming an author? Visit http://authors.packtpub.com for all the information you need about writing for Packt.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Gmane