Hi All
I am not able to get the updated rules still i used change set , can any one
plz sort out this problem
The source code is
using this program i am printing the rule name in package for every five
seconds.
for first time it prints rule names in package, after that packages are not
availabl
Quoting the Drools fusion manual:
"The after evaluator correlates two events and matches when the temporal
distance from the current event to the event being correlated belongs to the
distance range declared for the operator.
The temporal distance interval for the after operator is optional:
If
Is it possible to dynamically create a KnowledgeSession using the
Drools-server API, or must the be statically declared in the Spring config?
Thanks
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-server-KnowledgeSessions-tp3652344p3652344.html
Sent from the Drools: Use
Thanks for your replies. Please see my response inline
My intention to use guvnor was to let non technical person go and change
the rules. But due to the size of the file and drl format it is difficult
for them to first search the rule and then edit it, save it and build it.
Also since now my rule
Closing my own loop on this one in case anyone else runs into this issue.
As Michael mentioned this is definitely not a guvnor issue. The issue is
I am importing JPA libraries as part of my model as my classes are
annotated for JPA. Our JPA provider is Eclipselink and it seems the
Eclipselink JP
It's not to say somebody else here on the Drools forums can't give an
example - just not me.
Personally I'd ask the question on a Grails forum - to get a code snippet
to call a REST service.
Once you have this you can try to change to use Guvnor.
With kind regards,
Mike
2012/1/11 kavitha sethu
I want it with Grails. Ya just now i looked for this plugin. Let me read
the documentation of how to implement. I was just thinking an example would
be really helpful if any one has done this before.
thanks a lot.
On Wed, Jan 11, 2012 at 12:04 PM, Michael Anstis
wrote:
> Is that with Grails, or
Is that with Grails, or with Java?
The documentation gives Java examples.
I'd recommend Google'ing for how to invoke REST services from Grails. I did
a quick search and http://grails.org/plugin/rest looked promising.
2012/1/11 kavitha sethu
> I read the documentation at
> http://docs.jboss.org
I read the documentation at
http://docs.jboss.org/drools/release/5.3.0.Beta1/drools-guvnor-docs/html/ch09.html#d0e1695.
But i want to know how to use it with Grails/Java. I am just a beginner to
Drools.
On Wed, Jan 11, 2012 at 11:47 AM, Michael Anstis
wrote:
> Patience is a virtue.
>
> I assume y
Patience is a virtue.
I assume you've read Guvnor's documentation.
It is a marvel what can be found sometimes.
On 11 January 2012 18:45, kavita wrote:
> Hi,
>
> Can any one provide me an example of how to use Rest API in java/ Grails.
>
> Thanks,
> Kavitha.
>
> --
> View this message in contex
Hi,
Can any one provide a simple example of how to use Rest API in java/Grails ?
Thanks,
Kavitha.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drool-Rest-API-Example-tp3651460p3651460.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
Hi,
Can any one provide me an example of how to use Rest API in java/ Grails.
Thanks,
Kavitha.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-Rules-Mysql-Configuration-tp3645470p3651457.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi Mike,
Can you tell me how to Use Rest API to retreive the plain text rules.
Because when i went to
http://localhost:8081/guvnor/rest/packages/edu.arizona/assets/Lowers am
able to see some xml but not the exact rule to parse. How can i accomplish
it?
Thanks,
Kavitha.
On Mon, Jan 9, 2012 at 2:1
Hi,
When i try to look for the restapi through http://localhost:8081/guvnor/rest
it is giving me an error
"XML Parsing Error: no element found
Location: http://localhost:8081/guvnor/rest
Line Number 1, Column 1:
"
I tried to look for webdav it works fine.
Please help.
Thanks,
Kavitha.
--
V
Martin, could you please paste your original rule, exactly as it is in your
DRL?
I'm getting curious myself, and since this seems a parsing issue, we need
the exact source to reproduce the problem :)
Thanks
Davide
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-For
Hello,
What I did was to move the loop inside one of the methods, because I could
not get over this strange error. Still looking what may be causing it.
Regards,
Martin
2012/1/11 Swindells, Thomas
> ** **
>
> ** **
>
> *From:* rules-users-boun...@lists.jboss.org [mailto:
> rules-users-boun...
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mark Proctor
Sent: 11 January 2012 15:27
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] For loop inside a modify block problem
Why no braces after SomeBusinessLogic?
Also your logic
Why no braces after SomeBusinessLogic?
Also your logic is wrong there. Item is not a collection so your for
loop is repeating the same action over and over again for the same data.
Mark
On 11/01/2012 09:27, Martin A wrote:
Hi, Davide,
Here is how my rule looks like :
when
$item : Item(
Thank you so much Esteban
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-get-Asset-UUID-tp3650138p3650542.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@list
Hi,
I've succeeded in it.Just I added _kbase = _kagent.getKnowledgeBase(); in
do loop..
The changeset is getting updated.
Thanks..
--
View this message in context:
http://drools.46999.n3.nabble.com/Unable-to-apply-ChangeSet-to-DRL-file-tp3650367p3650540.html
Sent from the Drools: User fo
Hi,
I've a DRL file and Java Class, and ChangeSet.xml present in local drive D:
DRL file is rulemaster.drl having rule A,rule B.
My ChangeSet.xml is
Now My Java class is
package com.sample;
public class RuleEngine
{
private RuleEngine()
{
hi,
No, it's not literally my rule, I've changed the words :)
In my rule I have the ()
Still wondering what's the problem with the rule. I've noticed many times
that when there is some error, the engine may describe another, completely
irrelevant error. Maybe this is the case again.
It is strange
Hello,
I just worked on a drools project with many thousands rules (100k). The
project is now in production.
the issues are :
1) Guvnor needs more that 2.5GB Ram => Go to 64 bits java (we have 5GB heap)
2) Building the binary on guvnor on a virtual environment takes a few
minutes (4 minutes in our
when
$item : Item(param1 != 0, param2 == 0, !(this instanceof SpecialItem))
$gsc : SomeBusinessLogic
then
Is this literally your rule? This one is missing () after SomeBusinessLogic,
which might be confusing the parser...
--
View this message in context:
http://drools.46999.n3.nabble.c
For some reason I don't know, it is not possible to retrieve assets using
their UUID in REST-API. Everything must be done using asset's name
If you want to get all the assets' uuid from all your packages in guvnor
you could do something like:
1. Get all the packages:
http://localhost:8080/dr
hi Thomas,
Yes, there are probably many workarounds, including your proposal, also
moving the for loop inside the doSomethingElse() function, but what I'm
wondering is what's wrong with this syntax :))
Thank you
2012/1/11 Swindells, Thomas
> You could try assigning $item to a local variable a
Sorry, the fields are not public, but their getters are. But still not
working when I use the getters.
Thanks
On Wed, Jan 11, 2012 at 12:01 PM, Martin A wrote:
> hi Michael,
>
> All of the fields are public, however they are properties of a super class
> of Item. I tried with getters, doesn't w
"Thousands" of lines of DRL in a single file represent an issue not just to
Guvnor but to anything handling it.
The recommendation would be to split the DRL into individual rules,
resulting of thousands of assets in Guvnor.
The next question would be if you have "thousands" of similar rules why n
You could try assigning $item to a local variable and then using that within
the for loop?
Thomas
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Martin A
Sent: 11 January 2012 10:02
To: Rules Users List
Subject: Re: [rules-users] For loop ins
hi Michael,
All of the fields are public, however they are properties of a super class
of Item. I tried with getters, doesn't work either way.
Still getting: 'no such identifier : $item'. When I remove the for loop, it
goes ok, so I think it messes up things.
Best regards,
Martin
2012/1/11 Micha
RHS is not DRL syntax but Java or MVEL depending on your dialect.
If "id" is not public you should use it's getter. The same goes for
"quantity".
when
$item : Item(param1 != 0, param2 == 0, !(this instanceof SpecialItem))
$gsc : SomeBusinessLogic
then
$gsc.doSomething($item.getId() );
Hi,
How to get or retrieve Asset UUID's which are present in guvnor.I've
referred Interacting with guvnor stand-alone editor in guvnor docs,but
couldn't able to get the way to retrieve.Could you please suggest me REST
API url or any other way to retrieve each Asset UUID.
Thanks
--
View this mes
Hi, Davide,
Here is how my rule looks like :
when
$item : Item(param1 != 0, param2 == 0, !(this instanceof SpecialItem))
$gsc : SomeBusinessLogic
then
$gsc.doSomething($item.id);
for (int i = 0; i < $item.quantity; i++) {
$gsc.doSomethingElse($item.id);
}
update($g
I'm not sure which version he's using, but there were already some fixes
around this on 5.2 and/or 5.3, done by Surdilovic, if I recall well..
I've applied the same sort of approach here, but haven't proposed a pull
request, because I didn't have time to check if it was already fixed on 5.4:
https
34 matches
Mail list logo