In the application that I am working with we assert a
Parameter object that provides API for retrieving the
constants.
The parameters are configurable and are loaded from a
persistent store before they are asserted into the
working memory.
Rahul
--- J Michael Dean <[EMAIL PROTECTED]> wrote:
Do you have an import statement for importing
TipoCaracteristica?
I see you are already using TipoMolde.CABELO which I
assume is another public static variable in the
TipoMolde class.
If none of these work can you post your drl file?
Rahul
--- Anderson Pazza Mello <[EMAIL PROTECTED]> wrote:
>
Are you sure that timediff is doing the correct thing?
Can you post the code of MyFact and timediff?
--- Miguel Figueiredo <[EMAIL PROTECTED]> wrote:
> Hi listers,
>
> I have a fact MyFact that has a Date field in it,
> and I want to check if the
> difference between this date and the current
being handled as a
> special case, or the multi-binding is ok for you.
>
> Meanwhile, the workaround is either use the
> multi-bind as you are using
> or the infix OR as I showed above.
>
>[]s
>Edson
>
> 2007/10/23, Rahul Phadnis <[EMAIL PROTECTED]
I am using Jboss Rules 4.0.2 version.
I am trying to using or with binding. However the
following doesn't work
rule "RulesTest"
# the if part
activation-group "ActivationGroup1"
salience 50
when
$eventType: EventType(id ==
Constants.EVENT_DEVCOM_ID)
$result : Resu
Hello,
I am looking for pointers to how I can effectively log
messages during rule executions. Do I need to assert a
logger object for this purpose?
Does anybody have an recommendations for this?
-Rahul
___
rules-users mailing list
rules-users@lists.jb
You probably need a package definition at the top of
the file.
Please also import the SupplierView class in the rules
drl file.
You can also first test using the drools sample files.
-Rahul
--- "Manukyan, Sergey" <[EMAIL PROTECTED]> wrote:
>
> Folks,
>
>
>
> I am using Rules 4.0 in WebSp
Does your Fact object have the
isbooleanVariableName() method? The variable values
are extracted using Java Bean conventions.
-Rahul
--- "Rajesh.Sachin10" <[EMAIL PROTECTED]>
wrote:
>
> I tried to extract a boolean variable from a class
> using context. The
> following is my code in DSL file.
> ItemVo( statusCode : itemStatusCode != null, (*
> itemValidationDao.isValidItemStatus(statusCode)*) )
Can we call methods with arguments in the LHS? Or this
can be done for globals but not facts? Is this a new
feature of 3.1?
-Rahul
___
rules-users ma
itions are "AND"
conditions)
>From my tests it seems like the getPvPower method is
called irrespective of the value of timeRight.
If that is the expected behaviour how can I improve my
rule definition to ensure that getPvPower isn't called
if it is not necessary.
Thank you,
Rahul
Did you set the global in the WorkingMemory?
You can do that using the API at
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/apidocs/index.html
and yes that is for 3.0.5. I am sure there is an
equivalent for the version that you are using.
-Rahul
--- Sanjay Si
Did you set the global in the WorkingMemory?
You can do that using the API at
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/apidocs/index.html
and yes that is for 3.0.5. I am sure there is an
equivalent for the version that you are using.
-Rahul
--- Sanjay Sing
Have you looked at
http://labs.jboss.com/portal/jbossrules/subversion.html
I think that page is not uptodate since at the bottom
it says "Trunk is unstable and may often not build. If
you wish to build form Subversion source the latest
tag is:
http://anonsvn.labs.jboss.com/labs/jbossrules/tags/3.
I may not be understanding your requirements but would
storing the rule definition file in the database help.
So you have file with all your rules and you store it
in the database. At execution time you load the rules
file and hence rules from the database.
Rahul
--- "Kolla, Sandeep" <[EMAIL PRO
Previously Edson had suggested using the "from" CE.
Here is the example from his previous posting
rule "Device not working (condition id = 4)"
when
alertDefinition : AlertDefinition (conditionID==
4, eid : entityID)
Power( value < 1000 ) from dao.getPower( eid )
Temperature( deviceT
I understand that the jboss rules mailing list
migrated to the current server recently.
Can somebody tell me where can I find archives from
the previous mailing list?
-Rahul
--- Edson Tirelli <[EMAIL PROTECTED]> wrote:
>
>Alexander,
>
>Seems a really interesting project indeed!
>T
$ac : AlertCondition (conditionId ==4, $eid :
> entityID,
> >$p : power, $at : ambTemperature)
> > then
> > log("Triggered Device not working alert for " +
> $eid +
> >", power=" + $p + ", ambient temperature=&qu
I am very new to JBoss rules and I am trying to use it
for evaluating alert conditions.
I am asserting the AlertDefinition object as a fact
into the working memory.
The rules file would define a variety of alert
condition rules.
for example
rule "Device not working (condition id = 4)"
# the
I am relatively new to Drools. In my case I need the
following jar files for running drools with rules
written in DRL.
drools-compiler-3.0.5.jar
drools-core-3.0.5.jar
commons-jci-core-1.0-406301.jar
commons-jci-eclipse-3.2.0.666.jar
commons-logging-api-1.0.4.jar
commons-lang-2.1.jar
core-3.2.0.666
19 matches
Mail list logo