According to the spec the selection must find the most experienced,
with age as a tie breaker.
A single rule is sufficient:
$p: Person( $xp: experience, $age: age )
not Person( experience $xp || experience == $xp age $age )
Although you can write even more complex constraints, it
I am using Drools Planner.
Is there any way to separate rules.drl from program.jar.
Project
- program.jar
- rules.drl
Currently, Drools Planner only search for .drl file within resource
classpath.
--
View this message in context:
Hi,
Requirement:
i have a function which will return a value. Say for example String
getInfo().
In header level, i have a tag called as TType. possible values in this tag
are Online/offline.
In line level, i have a validation which should be executed based on TType.
if i get TType = online,
On 13/06/2012, Sandjaja, Dominik dominik.sandj...@it-motive.de wrote:
Hello Wolfgang, hello everybody,
Nice one, thanks for the idea! This one works for now, but is there a way to
automatically assign random variable names to the RHS of the DSL? So the
user won't have to explicitly set a
Yes, there is.
See
http://docs.jboss.org/drools/release/5.4.0.Final/drools-planner-docs/html_single/index.html#d0e3440
5.3.4.2.2. A RuleBase (possibly defined by Guvnor)
If you prefer to build the |RuleBase| yourself or if you're combining
Planner with Guvnor, you can set the
sorry. this is my declaration.
rule name=12_Line_Validation
parameter identifier=TReqHeader
java:classTHeaderType/java:class
/parameter
parameter identifier=TReqLine
Another observation: If the relevant field is TType, why do you call
getInfo()? One would expect getTType(), according to the usual bean
nomenclature.
-W
On 13/06/2012, vysrinivas vysrini...@gmail.com wrote:
sorry. this is my declaration.
rule name=12_Line_Validation
Hi,
I have a drl file that has 3 rules. I want to exit from the drl file if the
1st rule is satisfied. Is this possible.
--
View this message in context:
http://drools.46999.n3.nabble.com/Exit-from-drl-file-when-the-first-rule-is-satisfied-tp4017899.html
Sent from the Drools: User forum mailing
Agenda Group: a set of rules with a common agenda group identifier
that can be activated via the API. The identifier can be set for
decision tables. See the Expert manual on both counts.
-W
On 13/06/2012, tlee findtim...@gmail.com wrote:
Hi,
Are there any guidelines or recommendations for
On 13/06/2012, learner anandbabu6...@yahoo.com wrote:
Hi,
I have a drl file that has 3 rules. I want to exit from the drl file if the
1st rule is satisfied. Is this possible.
kSession.fireAllRules( 1 );
-W
--
View this message in context:
Thanks Wolfgang, I'll check it out.
Tim.
On 13 June 2012 11:32, Wolfgang Laun wolfgang.l...@gmail.com wrote:
Agenda Group: a set of rules with a common agenda group identifier
that can be activated via the API. The identifier can be set for
decision tables. See the Expert manual on both
Hi,
I have a scenario like
if(value == 200){
// then do something
}else if(value == 100){
// then do something
}else{
value = 0
}
I created drl with 3 rules
Rule 1 : value equal 200
Rule 2 : value equal 100
Rule 3 : value not equal to 100 or 200(ie by value!=200 value!=100 ).
Is there a
Is there any exit statement in drl file to achieve the same.
--
View this message in context:
http://drools.46999.n3.nabble.com/Exit-from-drl-file-when-the-first-rule-is-satisfied-tp4017899p4017904.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
From the Expert manual, section Right Hand Side (which you should
have read):
The call drools.halt() terminates rule execution immediately. This is
required for returning control to the point whence the current session
was put to work with fireUntilHalt().
-W
On 13/06/2012, learner
Hi,
You could put them all in the same activation-group and give low salience to
the default rule.
See documentation for more details. It seems they are doing a bit of
maintenance on the website, so you might have to be patient for a while.
Regards,
Frank
learner wrote
Hi,
I have a
Thanks Vincent.
--
View this message in context:
http://drools.46999.n3.nabble.com/BigDecimal-comparison-tp4017841p4017911.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
Hi there,
I am using Guvnor 5.0.0
I have a Guvnor running in a cluster, Guvnor uses Oracle DB for the repo.
When I add rules, functions or upload a POJO model jar, the different guvnor
instances are in synch, however this is not the case for my declarative
model which is not in synch.
My
I have a scenario like below
Rule a
When
! (
MyObject(aaa == “bbb”)
MyObject2(bbb == “aaa”)
)
Then
// do smth
End
I’m looking for an operator to reverse the evaluation result of the
expression in the brackets. Is this possible
--
View this message in
Mike,
thanks for taking the time to look into this. This is my observation:
1) Copy Test_R02 from package 'Test_Package' to package 't1'
2) Copy Function 'compare_revs' from package 'Test_Package' to package 't1'
3) Build Package
4) Got a 'Success' result.
5) Notice that the following classes
At ResourceFactory you have the methods:
ResourceFactory.*newUrlResource*(http://localhost:8080/rules/myRule.drl;)
ResourceFactory.*newClassPathResource*(your-project-path/path-rules/myRule.drl)
ResourceFactory.*newFileResource*(C:\path-rules\myRule.drl)
you have other methods, you can
Sounds like a bug to me.
Please raise a JIRA at https://issues.jboss.org/browse/GUVNOR, including a
self-contained repository export and your description below.
With kind regards,
Mike
On 13 June 2012 16:47, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote:
**
I use Guvnor 5.4.0 with
The 2 sessions that you saw were actually 2 different guvnors running on 2
different application servers...one was running 5.2.0 Final and the other is
5.4.0 Final
But in any case, I closed both and retried again (5.4.0 final) and still the
same problem...
Correction...trying to do a 'login' or 'reply' in Drools: User Forum and ran
into below error...
From: Nguyen, Tony N
Sent: Wednesday, June 13, 2012 12:44 PM
To: 'manstis [via Drools]'
Subject: RE: [rules-users] 5.4.0 Final and issue: GUVNOR-1873
Hi Mike,
I am
I just opened a JIRA ticket (GUVNOR-1911) but has no way to assign to you (but
I have requested to be assigned to you, Mike)
From: manstis [via Drools] [mailto:ml-node+s46999n4017925...@n3.nabble.com]
Sent: Wednesday, June 13, 2012 1:35 PM
To: Nguyen, Tony N
Another JIRA ticket for the javax.jcr.InvalidStateException issue.
(GUVNOR-1912).
thx,
tony
--
View this message in context:
http://drools.46999.n3.nabble.com/5-4-0-Final-and-issue-GUVNOR-1873-tp4017880p4017930.html
Sent from the Drools: User forum mailing list archive at
On June 1st, claz12 wrote: when I try to upload the model jar file, I get
the error 'Unable to to upload the file' message box displayed.
I was able to reproduce this problem on Guvnor 5.4 / Tomcat 7 -- and
uploading a JDK1.7 compiled Jar.
The HTTP response suggested that the Java version was
http://root256.com/wordpress/wp-content/themes/default/googlemail.html___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Thanks Geoffrey.
That really solved my problem.
Below is how I used scoreDirectorFactoryConfigy.setRuleBase( ruleBase ).
Note:
scoreDrl/rules.drl/scoreDrl must be removed from solverConfig.xml or
else will have problem.
// Imports
import org.drools.compiler.RuleBaseLoader;
import
Thanks for introducing ResourceFactory. It simplified the code further.
Can I know what is KnowledgeBuilder ?
// Import
import org.drools.io.Resource;
import org.drools.io.ResourceFactory;
// Implementation
Resource resource = ResourceFactory.newFileResource( ./rules.drl );
RuleBase
29 matches
Mail list logo