Hi all,
I have business process running inside the gwt-console and I need to be able
to send facts and start it from another application (a remote client). Does
gwt-console expose an API over Rest, SOAP, other, for this purpose?
Drools Server exposes such interface, but using it I will lose the
p
OK. You mean the behavior differs by versions. My above test in which both
rules fired was using Drools 5.1.1.
Questions:
1. "Since the lock and no-loop features are based on the fact handles, the
sometimes undesired interaction occurs."
Could you elaborate more on how is lock-on-active based
As of Drools 5.1.1, drools looks at the expression in "from" as a
black box. Every time it is executed, drools creates a new fact handle
to wrap the result(s). Since the lock and no-loop features are based
on the fact handles, the sometimes undesired interaction occurs. We
may be able to improve
Sry, i fixed this issue..
Thanks..
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Need-clarification-in-dslr-conversion-tp2287788p2292488.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
r
Gorantla, Bhaskar (GE Capital) wrote:
>
> I would appreciate if you could please answer the following questions.
>
>
>
> 1. Can you share some information on the out of the box
> repository? Is it a relational database or is it an embedded database
> such as Berkley DB?
>
>
>
> 2.
You explanation is very reasonable:
the engine assumes anything within $p may be changed by modify($p), although
$p.address is not changed actually.
However, I tried these rules myself and both rules were fired. Why?
According to the document, only one of the rules should fire; the other's
activ
Yes, and if you want to use the rule engine from .NET you can use the Drools
Server that expose the Drools Runtime in REST and SOAP interfaces :)
Greetings.
2011/1/19 Michael Anstis
> Hi,
>
> I believe the .NET implementation of Drools is somewhat out dated.
>
> However Drools ticks all your oth
I would appreciate if you could please answer the following questions.
1. Can you share some information on the out of the box repository? Is
it a relational database or is it an embedded database such as Berkley DB?
2. Can we make Guvnor to store the rules in an Oracle database
Another way is to keep bugging Mark and Edson to put in an else clause. :P
GreG
On Jan 19, 2011, at 12:56, Wolfgang Laun wrote:
> Either you define a rule covering all "else" cases, which, in your
> case, could be
>
> rule "#catch-all"
> when
> $i : Item( type != 1 && != 2 )
> then
> retract
You've already pointed to it yourself. Rules execution should be thought of in
the same way you approach concurrent programming. Execution can (and should)
be able to happen in any order possible. Only the current logical state of
working memory should influence the next step in execution, wi
Hi,
I believe the .NET implementation of Drools is somewhat out dated.
However Drools ticks all your other requirements.
With kind regards,
Mike
2011/1/19 Gorantla, Bhaskar (GE Capital)
> We are looking for a rules engine that has the following characteristics.
>
>
>
> 1. Supports both
We are looking for a rules engine that has the following characteristics.
1. Supports both Java and .net
2. Provides a business user friendly UI for creating/editing rules
3. Supports versioning
4. The rues in the rules repository are accessible to both Java and
.net
I certainly do appreciate the help and fully understand no one here will be
able to give me a concrete solution without a test case. I was just hoping
that describing the behavior would jog something in someone's head which
would lead to a pointed question that may help steer me in the right
direc
On Wed, Jan 19, 2011 at 6:12 PM, H.C. wrote:
> I have been doing some more testing and have observed that the test case
> will actually sometimes evaluate to true. Out of 10 runs, 2 succeeded and 8
> failed.
I'll elaborate on the "some code to reproduce" part:
Try to simplify the test, eliminate
Either you define a rule covering all "else" cases, which, in your
case, could be
rule "#catch-all"
when
$i : Item( type != 1 && != 2 )
then
retract ($i)
// do something...
end
or you do rely on salience, which, in this case is not quite so "bad practice".
It depends: if the "catch all" is t
If I have a rule like below:
rule "#1"
when
$i : Item(type == 1)
then
retract ($i)
// do something...
end
rule "#2"
when
$i : Item(type == 2)
then
retract ($i)
// do something...
end
// to handle other type of Item
rule "#catch-all"
salience -10
when
$i : Item()
then
retract ($i)
// do somet
Wolfgang...thanks for the replyI think?
I have been doing some more testing and have observed that the test case
will actually sometimes evaluate to true. Out of 10 runs, 2 succeeded and 8
failed. All I was doing was re-running the same test case over and over
again. The data is static and is
Hi,
Please find the below sample dsl and dslr, in which only the keyword part is
alone getting converted in dslr. condition scope is not getting converted
when i look at the generated drl file. But when i change the scope from
condition to keyword, its getting converted.. am i missing something..
Hi,
Without understanding the intricacies, just on general sw engineering
principles:
Is the number of possible package combinations too high to cache a rulebase
instance for each combination, or at least the ones anybody used recently?
If you have n toggle buttons on the GUI to include different
Hi All,
I am using JBOSS Rules 5.0.0, in which I am creating multiple
RuleBase object based on package passed to it.
e.g.
public RuleBase (Package pkg)
{
RuleBase rb = RuleBaseFactory.newRuleBase();
rb.addPackage(pkg);
return rb;
}
Though I know that creating Rul
Drools doesn't know if $p.address.state has changed or not, all it knows is
that $p has changed - it has to assume that everything within $p has changed
(including all the states).
Thomas
> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> boun...@lis
2011/1/19 Mohod, Akash
> Just saw this mail . My case was a slightly different. The Double there
> is one that we use in Mvel as in when we do something like
>
>
>
> $age : Double () from accumulate ( )
>
>
>
> I was using this to compare with double in java . Hope this is clear.
>
Is this
Hello All,
I have created the bug: https://issues.jboss.org/browse/GUVNOR-1159 in the
tracker.
Please let me know if any other info is required.
On Mon, Jan 17, 2011 at 6:35 PM, Harshit Bapna wrote:
> Yes I will create Jira Issue and next time will wait for the response.
>
> Actually I though
Thank you. I understand it now:
In the 2nd rule:
modify($p) => evaluate the 2nd rule again => re-iterate $p.address with
"from", so that Drools engine can know if there is any change in $p.address
compared with previous evaluation.
Also, the above modify($p) also triggers evaluation of the 1st ru
Below is my idea.
The rule check that there is
1) no event between E1 and E2 and
2) no event after E2
which induce that E1 and E2 are the last 2 event. I think it should work but
I didn't test it.
rule "Props"
when
$E1 : MyEvent(prop1 == "MyProp") from entry-point MyStream
$E2
In reality it doesn't return any fact, it returns each of the values currently
in the list held by the bound fact ($p).
Each time the rule is re-evaluated (due to $p changing) it re-iterates over the
list again (as it doesn't know if the list has changed or not). Drools
effectively doesn't know
I am trying to understand why care should be taken to use "from" and
"lock-on-active" together, as is described in "Section 4.8.3.8. Conditional
Element from" of
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch04.html
the Drools Reference Document .
It says "the use
Just saw this mail . My case was a slightly different. The Double there is
one that we use in Mvel as in when we do something like
$age : Double () from accumulate ( )
I was using this to compare with double in java . Hope this is clear.
Regards,
Akash
From: rules-users-boun...@lists.jboss
Hello Lucas,
sorry but I do not know how to change the file. My code is:
KnowledgeAgent ka =
KnowledgeAgentFactory.newKnowledgeAgent("/Guvnor.properties");
ka.applyChangeSet( ResourceFactory.newFileResource("bin/ChangeSet.xml") );
KnowledgeBase kb = ka.getKnowledgeBase();
StatelessKnowledgeSessi
Hi,
On Wed, Jan 19, 2011 at 8:35 AM, Mark Proctor wrote:
>
> Any takers for a more robust sudoku example, that demonstrates best
> practice?
I'm considering volunteering as a learning exercise. Won't be perfect
at first, but you can drill me on those best practices for free :-)
However I don't
30 matches
Mail list logo