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 date
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 :
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 WebSphere 6.0
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
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
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
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( deviceTemp
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