Interesting suggestions. Couple of questions:
Is drools not internally able to multithread a single execution of
fireallrules?
Does CEP offer performance benefits, or is it just a different way of
structuring the problem?
Cheers,
Tim
2010/10/12 Michael Anstis michael.ans...@gmail.com
Can
Thanks, please provide a specific example rule too.
Don't forget to keep your posts to the mailing list for the good of the
community.
On 12 October 2010 22:18, Kumar Pandey kumar.pan...@gmail.com wrote:
Michale
Thanks for the response.
Here's the link for the thread .
Hi Tim,
I don't believe Drools internals provides multi-threading under usual
operation.
If you start to use Timers and Calendars in your rules I have a strong
suspicion that it will; however this is an edge case.
CEP has the benefit of automatically garbage collecting facts that can no
longer
Does nobody have the sol-n for this one??
that not what i expect from this community..
-
Keep Working
KiranP
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Spring-Config-for-Knowledge-Agent-tp1634280p1693296.html
Sent from the Drools -
I'd refer you to one of the other emails:
Rules Fest is in full swing, http://rulesfest.org/html/home.html. Great
attendance with around 100 people and great food :)
Myself[Mark], Edson and Davide are here. Davide did a great lunch time talk.
Kris will be arriving on Wednesday to help with the
How would you expect Drools to multithread?
From what I understand drools operates in two steps:
1. When facts are inserted drools constructs and update Rete graph,
generating an ordered list of 'activations' of rules (and the corresponding
data) which can be fired.
There is a
I wasn't sure what was possible as I didn't know the inner workings of the
algorithm. Thanks, you've cleared up my understanding quite a bit.
Do you happen to know if Fusion is any different? Or is it still a case of
having to partition the data/streams to get parallelism?
Cheers,
Tim
Fusion uses exactly the same principles as the core engine; however the
event (facts of type event) life-cycle is managed by the engine. You'd
still need to partition to get parallelism otherwise the possibility of
dependencies between rules\facts\events in each process still arise.
2010/10/13
Hello there,
I am using BPMN and trying to call a ServiceTask without any input
messages. Unfortunately the BPMN specification seems to require exactly
one inMessageRef. Is there a way to get it to call a method without
arguments, like doStuff() ?
Is there any way to get around this without
Hi All,
I have a set of rules. After firing the rules if an exception occurs
in a rule the following rules are not getting evaluated. So i tried writing
a try catch block inside the consequence part of the rule, but then i get an
error saying 'unable to build the consequence.[Error:was
I dont know if this will fix your problem, but you forgot a ; after
$c.getModel().
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Hi leandro,
Thanks for replying. I didn't forget the ; in the actual
code. The code i have pasted is the sample one similar to my original code.
sorry for the typo.
2010/10/13 Leandro Romero leandro.s.rom...@gmail.com
I dont know if this will fix your problem, but you forgot a ;
I've done some additional experimentation and verified that you can't
run Test Scenarios (at least, can't run them successfully). I did
discover that I could create a Technical Rule that has the declare to
establish our object as an event. I'm sure this isn't intended, but it
works
For
Hi Michael,
I have written this rule in the guvnor editor, i did import
java.lang.Exception.
2010/10/13 Michael Anstis michael.ans...@gmail.com
Did you import the Exception class?
2010/10/13 sumatheja sumath...@gmail.com
Hi All,
I have a set of rules. After firing
Michael
Here are some examples
Rule1 has str1, Str2, Str3
Rule2 has str2, Str3, Str5, Str6, Str7
Rule3 has str1, Str3, Str6
etc.
With fact1 that has str1, Str3 , since this is subset of values in
Rule1 and Rule3, they should not fire but Rule2 should fire
With fact2 that has str2, Str6,
Not as clear as I'd hoped; can you provide an actual rule DRL?
2010/10/13 Kumar Pandey kumar.pan...@gmail.com
Michael
Here are some examples
Rule1 has str1, Str2, Str3
Rule2 has str2, Str3, Str5, Str6, Str7
Rule3 has str1, Str3, Str6
etc.
With fact1 that has str1, Str3 , since
Hi Touma,
Did you manage to get this working?
I am getting the same issue. My usecase is, a Process with a ruleflow group
and a workitem. BTW, my workitem is simple pojo (wanted to keep it simple
for testing purpose which prints a msg). When I try reload the session and
try signalling the
I'd say you are using
dialect mvel
There is no try/catch statement in MVEL. You have the options:
(1) Use Java, not MVEL.
(2) Surround the fireAllRules() with try/catch and put it in a loop that's
terminated
if there is no exception.
-W
2010/10/13 sumatheja sumath...@gmail.com
Hi All,
Could you please create an isolated test case for this? I'm at the rule fest
right now, but i would like to take a look at this later.
Best,
El oct 13, 2010 6:57 a.m., Swindells, Thomas tswinde...@nds.com
escribió:
I'd refer you to one of the other emails:
Rules Fest is in full swing,
Hi Wolfgang,
Whats the advantage of option 2 over 1? Can you give sample code for option
2??
2010/10/13 Wolfgang Laun wolfgang.l...@gmail.com
In drl, you could use
dialect java
at outermost level, but one never does, because that's the default.
I'd use option (2).
-W
2010/10/13
Hi Esteban,
I dont think we need separate usecase here. At least in my case i have tried
with the test case provided in the source code 5.1.1.
Please try in this package
Version: 5.1.1
Module Name: drools-container
Test class:
I've just been writing what should be a really simple function in my DRL.
What I wanted to do is to take an object in, construct another object from it
and then insert both into working memory.
Eg.
function void insertBoth(Object1 object1) {
insert(new Object2(object1));
insert(object
I'm asking you for a test because there is already a test in drools that
uses kagent+kbase spring configuration. The test is
org.drools.container.spring.SpringDroolsTest and uses
org/drools/container/spring/kagents-beans.xml configuration file.
Could you check the tests present in that class?
case 1 could be:
*package something*
*
*
*dialect java *
*
*
*rule Some rule*
* when*
* Something()*
* then*
* try{*
* callSomeDangerousLogicHere();*
* catch (Exception ex){*
* //manage your exception here*
* }*
*end*
*
*
The second approach is to write
Thanks for the response.
In fact, I have seen these files earlier. Moreover I am just trying to run
the test provided which is not working. The file you mentioned has kagent
but missing persistence configuration. I doubt this issue comes while you
are trying to configure JPA.
Please configure
I'm running 5.2.0.SNAPSHOT here. What I did is to add a new test in
JPASingleSessionCommandServiceFactoryTest:
@Test
public void testAgents() throws Exception {
KnowledgeAgentImpl kagent1 = ( KnowledgeAgentImpl ) ctx.getBean(
kagent1 );
}
I also have added the agent's
Advantage: You don't have to code a handler in each and every consequence.
A very simple strategy to keep on firing, in spite of exceptions:
import org.drools.runtime.rule.ConsequenceException;
while( true ){
try {
kSession.fireAllRules();
break;
} catch( ConsequenceException
Implementing this would require a detailed parsing of function bodies and
more,
to get the runtime object into the scope of the static methods compiled from
DRL functions.
As it is, a minor improvement is possible with:
import org.drools.spi.KnowledgeHelper;
function void ins( KnowledgeHelper
Hi there,
Is there a way to reset the working memory so that all the rules will
run again when fireAllRules() is called? (I am running the startProcess
method number of times with the same working memory)
I know that normally rules will only be run again when there was a change
and the fact was
OK, unless I'm missing something else you should be able to do something
like this:-
rule setup superset - Rule 1
when
then
Element ss = new Element(Super set - Rule 1, 1, 2, 3);
insert(ss);
end
rule rule 1
when
$f : Fact()
Element(name=Super set - Rule
Hi All,
I am new to Drools. I am working on a project where nature of rules are
dynamic. I want to capture that rule which does not get executed. i need to
store that rule because i have to display that rule in the UI.
Here is my rule file
rule FrontAxle:Capacity|FrontSuspension:Capacity
when
Hello Esteban,
NOTHING CHANGES. Same issue continuous. Please check the exception stack
trace in the post beginning by Kiran. We can not use 5.2 at the snapshot
stage. Please let us know the work around.
excerpt of my bean.xml is below...
drools:kagent id=kagent1 kbase=kbProcessWorkItems
Hi
I am a new guy on drools server. I am trying to exposed drools rules in web
services.
I downloaded Drools Guvnor Standalone from website, it includes Jboss, then
I put drools server war file in deploy folder, and start the Jboss.
When I input http://localhost:8080/drools-5.1.1-server/; in
Hi Guys
Is possible to enable authentication for java remote client??? I saw is
possible if use basicAuthentication='enabled' at change-set.xml but my
question is how configure security only for one knowledgebase and only
allowed to connect if the client have grants for execute the package.
On 2010/10/14 11:42, Mauricio Cáceres wrote:
Hi Guys
Is possible to enable authentication for java remote client??? I saw
is possible if use basicAuthentication='enabled' at change-set.xml but
my question is how configure security only for one knowledgebase and
only allowed to connect if
(sorry I am not providing an answer here...)
I have the same problem here,
and I think the camel-client.xml file needs more settings or other changes.
My original thread about the problem is :
http://drools-java-rules-engine.46999.n3.nabble.com/calling-drools-server-td1687129.html#a1687129
--
Hi All,
I have this doubt regarding the notation used inside the rule's
condition. I have a fact HOST having the variables* HostName* and *
CPUSockets*. I have the following rule
rule Test
when
HOST(HostName!=null, CPUSockets3)
then
# do something
Is throws an error saying cannot extract
In your beans Do you use caps for attributes ?
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio Salaboy Salatino -
On 13/10/2010, at 22:20, sumatheja sumath...@gmail.com wrote:
Hi All,
I have this doubt
Should not be using according to convention but yes i used it that way. In
the below case CPUSockets is not giving any error.
2010/10/14 Salaboy sala...@gmail.com
In your beans Do you use caps for attributes ?
- CTO @ http://www.plugtree.comhttp://www.plugtree.com
- MyJourney @
39 matches
Mail list logo