If I understand your problem correctly, you can, may be, flag your MyObj ( add
an attribute called flag and set it to some value ) indicating that it has
passed "morespecific" rule and add constraint in the "general" rule to ignore
such facts ?
-abhay
From: rule
Correct. But does it then internally build the DRL into binary/compiled format
and then uses it for updating knowledge base ?
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Thursday, May 19,
Hello,
in our project we've to know, which rules have already been checked, regardless
whether or not the rule gets activated and hence put on the agenda. Is there
any possibility to affect the order, in which the drools engine reads and
checks the LHS of rules? I suppose the assignment of a sa
HI ,
I want to change rules dynamically , but not want to retract the objects
from memory.
I am using one fact class which is also created dynamically.
is it possible to do this ?
Please help me.
Thanks ,
saurabh
___
rules-users mailing list
rules-us
You can feed a KnowledgeBuilder with a number of data formats, DRL being
just one of them. The full standard procedurefor building is to add one or
more resources to the builder (indicating its type), check for errors and
create a KnowledgeBase; then proceed with a session, etc.
-W
2011/5/19 Abh
Little confused about the third question I had, about rules compilation. I now
know that rules are to be compiled. When I use Guvnor, I have to package the
rules ( this is where they are compiled into binary format ) and download the
package file and feed it into the production memory / knowle
I didn't need to .. e.g. I added this "free form drl" in to one of my rules
"then" part, and it validated it successfully. You just need to provide a fully
qualified name .. e.g. java.util.Vector, instead of just Vector.
[cid:image001.jpg@01CC1616.2C861CA0]
-Original Message-
Fr
Hi can you attache a screen shot of what Guvnor looks like on IE7
please? I ran into some problems on IE9, but have not tested on IE7 yet.
Thanks,
Jervis
On 2011/5/19 2:12, Steve Reeves wrote:
> Just curious if anyone had any thoughts on what we could do to get IE7 to
> display properly. It woul
Just curious if anyone had any thoughts on what we could do to get IE7 to
display properly. It would be nice to just upgrade everyone to IE8, but
we're at the mercy of our Enterprise policies and upgrade schedules.
Thanks,
Steve
--
View this message in context:
http://drools.46999.n3.nabble.com
Hi ,
Recently i was working on a drools project where i came across certain
issues and i need some help.
In my project i access jar at runtime by making use of the
URLClassLoader.Here is the code :
Object object=*null*;
Class myclass=*null*;
URL jarPath=*null*;
*try*{
jarPath
Hi,
In order to import java.util* classes inside Guvnor rules, do I need to
upload java,util* jar file.
For example-, I am using BigDecimal amount = BigDecimal.ZERO;
It complains unknown class or Illegal statement BigDecimal
--
View this message in context:
http://drools.46999.n3.nabble.com/Im
Neither $submitter nor $requester are defined in the rule as you posted it,
so
there's no way of telling where the problem might be.
Note that '&&' binds stronger that '||' and use parentheses to force
precedence.
-W
On 18 May 2011 18:40, ginni wrote:
> Hi,
>
> I am new to Drools and would ju
Hi, I was refactoring and fixing some issues with Drools Server. The 5.2
version can be deployed out of the box into jboss/tomcat/jetty without any
modification as far as I know. Can you try this new version?
Greetings.
2011/5/18 Abhay B. Chaware
> Hi
>
> I am trying to get the default drools-s
Hi Tommy,
We are still refactoring grid, and we will probably include just
drools-grid-api as direct dependency of drools-spring.
>From my perspective it makes perfectly sense to be able to configure where
the session will be executed inside the spring configuration.
We will try to remove all the u
Hi,
I am new to Drools and would just like to understand how to do what I am
trying to do. This syntax does not work, and I am not sure how to make it
work. I want permission granted if:
User is Librarian
OR user is Submitter OR user is Requester AND requestSubmitted is false
AND
requestCancel
I had class, for example- . Inside BRL after 'THEN' clause, the guvnor only
shows my calculate and toString method. But it does not provides me
opportunity to call getMoney() method.
public class A{
public void calculate(){
}
public String toString(){
}
public BigDecimal getMoney(){
}
}
--
Vie
I'm wondering if it is possible inside DSLR or BRL to access database using
Guvnor.
Please guide me thru the example, how we setup access to database in guvnor
when using 'from' keyword.
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-can-access-database-tp2956847p29568
I was able to get drools 5.2 to deploy after removing the persistence.xml from
the drools-grid-impl jar file.
The problem is that one of my classes expects a single persistence unit to
exist in the WAR because it is used across multiple WARs that use different
persistence unit names. It appea
Hi,
I am now able to run the examples (by removing the commented statements in
the drools.package file). Thanks a lot for the help.
But how can we create more rules in a brl . Is it possible to create more
than one rule in a brl
as we do in the drl file or do we have to create different brl files
Hi All,
I removed the commented lines from the drools.package file. Its now working
fine.
Thanks a lot!!!
I was using the brl for the first time, so didn't know that the rule name
was getting commented out.
I used the same code to convert it into drl and pass it to package builder.
Isn't there
Hi
I am trying to get the default drools-server.war (drools-5.1.1-server.war to be
specific ) to work on tomcat.
When I access http://localhost:8090/drools-5.1.1-server/kservice/rest , I am
getting "No service found" in the browser and in the console,
=
May 18,
2011/5/18 Michael Anstis
> I just checked and when I create a new BRL rule drools.packages has the
> comment on a single line.
>
>
od -tx1 bfzwork/aws/src/main/rules/drools.package
000 2f 2f 54 68 69 73 20 69 73 20 61 20 70 61 63 6b
020 61 67 65 20 63 6f 6e 66 69 67 75 72 61 74 69 6f
I just checked and when I create a new BRL rule drools.packages has the
comment on a single line.
I must assume there was some manual change made to introduce the error.
2011/5/18 Wolfgang Laun
> There is some code in 5.1.1
> org/drools/eclipse/rulebuilder/editors/RuleEditor.java
> that creates
There is some code in 5.1.1
org/drools/eclipse/rulebuilder/editors/RuleEditor.java
that creates a file "drools.package" with
if ( !file.exists() ) {
String defaultHeader = "//This is a package
configuration file";
defaultHeader += "\n//Add imports, glob
//Add imports, globals etc here which will be used by all the rule assets
in this folder.
should be on one line, or add another comment marker at the start of the
second line, e.g.:-
//Add imports, globals etc here which will be used by all the rule assets in
this folder.
//Add imports, globals
I was able to reproduce your error ... :) try adding a new line ( enter )
after the comment in the drools.package Or just remove the commented line
"//Add imports, globals etc here which will be used by all the rule assets in
this folder."
Your rule name is getting 'commented out' ..
This is my drools.package file:
I have just created a package and imported the required class in this file.
//This is a package configuration file
package com.rules;
import com.model.PersonDetails;
//Add imports, globals etc here which will be used by all the rule assets
in this folde
This looks rogue:-
//Add imports, globals etc here which will be used by all the rule assets
in this folder
Can you post the content of your drools.packages file?
On 18 May 2011 10:19, Sumeet Karawal wrote:
> This is the output that I get :
>
> //This is a package configuration file
> package
This is the output that I get :
//This is a package configuration file
package com.rules;
import com.model.PersonDetails;
//Add imports, globals etc here which will be used by all the rule assets
in this folder.rule "example"
dialect "mvel"
when
$person : PersonDe
Can you write the outputDRL to System.out and check if the generated DRL syntax
is correct ?
System.out.println(outputDRL);
Before instantiating KnowledgeBuilder
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Su
I tried to use this also but now I am getting different error:
java.lang.RuntimeException: [8,1]: [ERR 102] Line 8:1 mismatched input
'WHEN'
Also, what is the significance of the first line. I have copied it as the
same.
My code is :
String curDir = System.getProperty("user.dir");
Thank you.
With the drools-distribution-5.3.0-SNAPSHOT.zip, i can run the project.
I don't understand why my first project, (download at
http://download.jboss.org/drools/release/5.1.1.34858.FINAL/drools-5.1.1-examples.zip)
didn't work, but with your help, i have a project which work, thank you :)
I haven't been able to get "ResourceType.BRL" to work. This is how I do it ..
String curDir = System.getProperty("user.dir");
String fileName = curDir + "\\src\\main\\rules\\drools.package";
String rulePackageContent = FileUtils.readFileToString(new File(fileName));
fileName = curDir + "\\src\\
Dear all,
I've tried many different combinations of the eclipse drools/bpmn editor and
Oryx web-based editor but my bpmn files just couldn't work across the two.
I'm facing issues such as:
java.lang.IllegalArgumentException: No profile with the name null was
registered
org.oryxeditor.server.Edito
You must insert a magic spell string to make this work ;-)
Look at this line:
String(FactorKeys.PHONE_PACKAGE memberOf ownedProductFactorSet)
It says: "If there is an object of type java.lang.String and..." And so you
must insert a String!
But, of course, you don't need *this *condition. You
35 matches
Mail list logo