You can assign the session clock to a global and access it from LHS
conditions and inline accumulate functions.
However, be aware that the value obtained from the session clock
during LHS evaluations is anything between one WM operation and rule
evaluation starts and another WM operation and the
Hi Mike !
Its working on 5.4.0 Beta1
thanks !
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-can-t-put-formula-on-Guvnor-screen-tp3987830p4013151.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi !
Can I put Power in Fromula box of THEN part...??
this is the formula that I have to apply
I want to put this formula in THEN section
*deathBenefit=sumAssured * [(1 - 1/(1 +
(interestRate/100)^(policyTerm-policyYear+1) / 1 - 1/(1 +
It should be working in 5.5.0.beta1.
5.4.0.Final is what we released. I would not recommend using 5.4.0.beta1 as
it is pre-release and some of it's internals could have changed for
5.4.0.Final (and later).
Consequentially, and I believer other community members have been caught
out this way,
The THEN part is either (depending upon the rule's dialect) a Java or
MVEL code block.
Java defines the ^ operators as a bitwise exclusive or. I suspect you
should probably use Math.pow.
Math is in the java.lang package so you shouldn't need to explicitly import.
With kind regards,
Mike
On 24
Hi Mike and many thanks for replying !
shall I use *Math.pow* in free form DRL of THEN or can I use in Formula
Box...???
thanks !!
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013297.html
Sent from the Drools: User
Hi,I am using KnowledgeRuntimeLogger to log inference activities in StatefulKnowledgeSession, can someone help me on how to add a time stamp on each entry in the log file?
___
rules-users mailing list
rules-users@lists.jboss.org
Formula box should be OK, but check the generated DRL.
On 24 May 2012 11:50, zeeshan zeeshan.spr...@gmail.com wrote:
Hi Mike and many thanks for replying !
shall I use *Math.pow* in free form DRL of THEN or can I use in Formula
Box...???
thanks !!
--
View this message in context:
hello.
I have the following 2 classes:
public class ClassWithPayload {
private String key;
private Object payload;
// getters setters etc ommitted
}
public class PayloadClass {
public String someProp;
//getters setters etc ommitted
}
and im trying to get the following rule
thanks for your reply.
if i place the session clock as a fact, will this have any issues with
session serialization, or will it just work ?
--
View this message in context:
http://drools.46999.n3.nabble.com/accessing-session-clock-from-accumulation-function-or-rule-body-tp4012348p4013375.html
Hi Mike !
I have decomposed the formula into several small partsI was trying with
Free form DRL, then I validated it...it is giving error
*[DeathBenefitRule] Unable to Analyse Expression int
$interestNumerator=1+($deathBenefit.getInterestRate()/100); int
$interestRateNumerator=1;
Hi Mike !
I have decomposed the formula into several small parts
http://drools.46999.n3.nabble.com/file/n4013423/error.png I was trying
with Free form DRL, then I validated it...it is giving error
*[DeathBenefitRule] Unable to Analyse Expression int
On 24/05/2012, radai rosenblatt radai.rosenbl...@gmail.com wrote:
thanks for your reply.
if i place the session clock as a fact, will this have any issues with
session serialization,
Don't know what you mean by that.
or will it just work ?
No, because the clock will change, but the rules
Try using the getter, Java style, rather than the simple field name.
-W
On 24/05/2012, radai rosenblatt radai.rosenbl...@gmail.com wrote:
hello.
I have the following 2 classes:
public class ClassWithPayload {
private String key;
private Object payload;
// getters setters etc
Hi Laune and thanks for replying !!
*1.* I am using *5.4.0 Beta* 1... I also tried by using *Math.pow* as Mike
posted above but by validating got error... *[DeathBenefitRule] Unable to
Analyse Expression $deathBenefit.setSumAssured( sumAssured*(1-1/
The variables in the RHS's DRL aren't prefixed with $ as they are in the
LHS.
sent on the move
On 24 May 2012 13:52, zeeshan zeeshan.spr...@gmail.com wrote:
Hi Laune and thanks for replying !!
*1.* I am using *5.4.0 Beta* 1... I also tried by using *Math.pow* as Mike
posted above but by
Hi Mike !
I tried with prefix $ too on the RHS, still giving error
*[DeathBenefitRule] Unable to Analyse Expression
$deathBenefit.setSumAssured( sumAssured * ( 1 - (1 / (Math.pow ( (1 +
($interestRate/100),$policyTerm-$policYear+1) ) ) ) ) / (1 - (1 / (Math.pow
( (1 +
I still see a sumAssured without $ on line 6.
sent on the move
On 24 May 2012 14:35, zeeshan zeeshan.spr...@gmail.com wrote:
Hi Mike !
I tried with prefix $ too on the RHS, still giving error
*[DeathBenefitRule] Unable to Analyse Expression
$deathBenefit.setSumAssured(
i tried this:
rule Naive Payload Access
@typesafe( false )
when
$container : ClassWithPayload(key == someKey, (payload != null
((PayloadClass)payload.getSomeProp()) == someValue))
then
System.err.println(boom);
end
which results in
java.lang.AssertionError: Unable to Analyse
oops..now I tried by putting $ before sumAssuredstill same error
*[DeathBenefitRule] Unable to Analyse Expression
$deathBenefit.setSumAssured( $sumAssured * ( 1 - (1 / (Math.pow ( (1 +
($interestRate/100),$policyTerm-$policYear+1) ) ) ) ) / (1 - (1 / (Math.pow
( (1 +
Hi,
I am using Guvnor as knowledge repository and using drools rule engine to
evaluate the rules stored in Guvnor. Now I have one more rule engine for
which we are planning to use the same rules stored in Guvnor, but I am not
sure how to expose the rules present inside Guvnor to new system. Can
Guvnor can provide rules to any instance, thus used as a shared repository...
Are you trying to duplicate Guvnor rules from one Guvnor instance to another ?
If yes :
- You can use repository export / import (Administration panel under
Guvnor)
- You can use the REST api of Guvnor to query
It is true Guvnor stores some asset types as XML internally. There is
however no schema (we simply use XStream to serialise) and it most
certainly is not compliant with any industry standard on rule
representation (if indeed there is a single well defined open standa
sent on the move
On 24 May
oops... hit send too soon...
...open standard, although OMG is working on a Decision Model Notation
standard that will help with the interchange of some types).
So, in short, the answer is no.
sent on the move
On 24 May 2012 16:01, Michael Anstis michael.ans...@gmail.com wrote:
It is true
Supporting industry standards (RuleML, RIF), at least to some extent, has
been on the TODO-list for quite some time, but we're simply lacking the time
:( any contribution would be well appreciated
--
View this message in context:
With reference to Vincent's comments I assumed you meant a Rule Engine
other than Guvnor/Drools.
sent on the move
On 24 May 2012 16:04, Michael Anstis michael.ans...@gmail.com wrote:
oops... hit send too soon...
...open standard, although OMG is working on a Decision Model Notation
standard
Yes your assumption is right, I am trying to use the rules present inside
Guvnor in other rule engines (other than Guvnor / drools rule engine).
--
View this message in context:
http://drools.46999.n3.nabble.com/Can-we-retrieve-the-rules-as-XML-from-guvnor-using-java-code-tp4013660p4013776.html
Which engines in particular, if we may ask?
--
View this message in context:
http://drools.46999.n3.nabble.com/Can-we-retrieve-the-rules-as-XML-from-guvnor-using-java-code-tp4013660p4013807.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi,
We are in a fireUntilHalt during a persistent StatefulKnowledgeSession
using JTA JPA with Hibernate ... Our session consists in a series of
facts ( well, we are not different of anyone else for that matter ... xD )
but some of our facts are also JPA @Entity . What we want is to persist
You can use the Variable Persistency Strategies, that will store your facts
in the database for you.
You need to configure in the environment the strategies for example:
as Wolfgang said, try using true java casting...
instead of
((PayloadClass)payload.getSomeProp())
try
( ((PayloadClass)payload).getSomeProp() )
--
View this message in context:
That was really fast! Thank you.
Maybe I'm not getting this properly ... let me extend this thing a bit...
what we are trying to get is to store the state of a set of facts living in
the knowledge session in the database, one tuple for each update of it's
state along ( or at least syncronized )
No this is not possible.
We build lists of available types from Model assets.
With kind regards,
Mike
On 23 May 2012 19:45, mpgong michael.p.g...@lmco.com wrote:
Hello,
Is it possible to use a declared type from the decision table or drl as a
given item with Guvnor test scenario?
When i
I'd try using free-format DRL and breaking the expression down into smaller
parts until it works.
I can't see anything wrong with the syntax - unless it relates to the bug
Wolfgang said was fixed for 5.4.0 (I *assume* he'd mean FINAL).
The advice, as I have given before, would not to use a beta
This is not possible.
The nearest we have is to select for is contained in (a comma separated)
list and type the values manually :(
We have this JIRA: https://issues.jboss.org/browse/GUVNOR-1857. Please add
additional information if required, or raise a new JIRA if you feel this
one is not
A dollar sign '$' is valid in Java, so this shouldn't be an issue of LHS or
RHS.
-W
On 24 May 2012 20:36, Michael Anstis michael.ans...@gmail.com wrote:
I'd try using free-format DRL and breaking the expression down into
smaller parts until it works.
I can't see anything wrong with the
Micheal, thanks for letting me know. :)
Early versions of our program did use manually entered values however, in our
latest update we started using a fact model pojo with set enumerators.
Looks like there is no easy way around this for now, so I will just have to
expand my rules to cater for
IntelliFest (previously RuleFest) is currently trying to find premises
on the west coast of USA, with near by accomodation, to host 150 people
for 4 days. Interested in hosting?
If so contact me on mproctor at codehaus d0t org
___
rules-users mailing
Thanks Mikey and Laune for replying
gonna try with 5.4.0 final version and free form DRL..I already broke
the formula into several small partswill let u know
thanks !!
--
View this message in context:
Rule Templates work like decision tables and IIRC support multi-selection
enums... have a look.
sent on the move
On 25 May 2012 00:25, online.re...@gmail.com wrote:
Micheal, thanks for letting me know. :)
Early versions of our program did use manually entered values however, in
our latest
40 matches
Mail list logo