I resolved this by simply removing the jar and add dummy implementations in
my own project for the required classes that are in drools-grid-impl. This
is not pretty, but it works :)
--
View this message in context:
Hi Kenny,
extract the grid classes that drools-spring is dependent on out into a
drools-grid artifact that instead of depending on the full impl
Can you file a JIRA for this issue?
http://issues.jboss.org - JBRULES
Op 28-11-11 10:11, kennywest schreef:
I resolved this by simply removing the
I don't want to sort facts outside of drools rules. The sorting is part of
business requirements. My opinion is that is not a good thing to keep parts
of business logic in different places.
I spent some time to figure out how it is possible to sort a collection of
facts and here is my solution:
I read in Drools guide, that queries can now call other queries.
But the guide doesn't give much details, mostly paying attention to a rather
specific case.
I have two queries having common parts and try to figure out how to get rid
of duplicate code.
Here is the simplified form of queries I'd
Yes we can do that pretty quickly. It was in that way in the past but
now with the new refactorings it becomes a single module again.
On Mon, Nov 28, 2011 at 6:23 AM, Geoffrey De Smet
ge0ffrey.s...@gmail.com wrote:
Hi Kenny,
extract the grid classes that drools-spring is dependent on out into
Done:
https://issues.jboss.org/browse/JBRULES-3299
The dummy classes and interfaces I'm using are also included.
--
View this message in context:
http://drools.46999.n3.nabble.com/drools-spring-dependency-on-drools-grid-impl-tp3541271p3542201.html
Sent from the Drools: User forum mailing list
Hi Cherokee,
To answer your first question you can check the state of a workitem in its
onExit action by:
import org.jbpm.workflow.instance.node.WorkItemNodeInstance
import org.drools.runtime.process.WorkItem
WorkItem workItem =
((WorkItemNodeInstance)kcontext.getNodeInstance()).getWorkItem();
Well, after trying and trying to reproduce with a simpler case, @role is always
correctly inherited.
But in my application, it seems not, or may be it is another problem.
I have 3 classes : ChantierEvent (the main mother class) and its 2 subClasses :
InitEvent and DisposeEvent
When I declare
Thanks Michael ... you've been very helpful.
Yes, I am considering helping out on the documentation (my undergrad is in
Instructional Technology) ... if I can ever figure out how all of this
works. I have also read thru some of the 3rd party books on the subject,
and I find them quite lacking
Vincent,
It seems it is a merging problem on declarations, but unfortunately, the
exceptions you are seeing are the symptoms, not the cause, so I can't infer
much from them.
Some suggestions to try to isolate the problem: are the fact types
(classes) in the same package or different
I guess I need to learn how to submit bugs. Any help is appreciated.
If you forget the name of the rule, instead of a clear error (like Rule
name missing) you get a NullPointerException with no indication why.
Thanks
___
rules-users mailing list
Seems that upgrading my Guvnor install to match the version Drools in my
project has done the trick to some extent. Still dealing with some errors,
but the original error has not presented itself.
--
View this message in context:
It seems that a full definition of the semantics of @expires is still
missing from the Fusion manual.
After that time, assuming no rule *still needs the event*, the engine will
expire and remove the event from the session automatically. (Emphasis by
me.)
So, when does a rule need an event? This
2011/11/28 Ronald Albury ronalb...@gmail.com
I guess I need to learn how to submit bugs. Any help is appreciated.
For starters, you can look at
http://www.atlassian.com/software/jira/overview and study some examples at
https://jira.jboss.org/browse/JBRULES.
If you forget the name of the
Hi Edson, and thanks for answering
? - are the fact types (classes) in the same package or different packages?
Different packages. But I tried this on my little sample (put the sub-class in
another package than the mother class), and this works
? - Are the declaration(s)/rules in the same
Tried to load my fusion package before any others. Same problem
- Mail original -
De: Vincent LEGENDRE vincent.legen...@eurodecision.com
À: Rules Users List rules-users@lists.jboss.org
Envoyé: Lundi 28 Novembre 2011 19:48:03
Objet: Re: [rules-users] Fusion : must declare @role(event)
You can simplify the query:
query sortedItems
TreeMap( $values: values() )
from accumulate( $f: Fact(),
init( TreeMap map = new TreeMap(); ),
action( map.put(factKey($f), $f); ),
reverse( map.remove(factKey($f)); ),
Is there a simple way for me to be able to access the rule name in the
'then' clause?
When rules fail I want to pass the rule name into my internal error handler.
Thanks in advance
___
rules-users mailing list
rules-users@lists.jboss.org
Let me clarify in advance ... my rules are detecting errors in input data
... so when a rule fires it accesses my internal error handler. I realize
that rules fire when they succeed, not when they fail.
On Mon, Nov 28, 2011 at 4:56 PM, Ronald Albury ronalb...@gmail.com wrote:
Is there a simple
not from the rule, but you can use an agenda listener for the same
From: Ronald Albury ronalb...@gmail.com
To: rules-users@lists.jboss.org
Date: 11/28/2011 02:58 PM
Subject:[rules-users] Retrieving rule name in then clause
Sent by:rules-users-boun...@lists.jboss.org
Actually, you can do
/then
...
drools.getRule().getName()
...
end/
drools is a reference to an instance implementing the KnowledgeHelper
interface.
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Retrieving-rule-name-in-then-clause-tp3543557p3543606.html
Sent
We'll be working on deployment next year that is not tied to specific
versions of drools. The reason for this is that the Packge is really just a
cached form representing the DRL, to avoid compiling drls on the client. We
actually just serialise the resulting objects. But internally we do a lot
of
The query is treated just like a pattern. ? indicates whether the query
should be materialised or not. In general if you aren't sure, then don't
include the ? and let it materialise.
The queries do not return any results, they are not functions. Like
patterns the resuls are returned from out
23 matches
Mail list logo