[rules-users] Formula error in Business Rule(Guided editor)

Vincent LEGENDRE vincent.legendre at eurodecision.com
Fri May 11 08:19:58 EDT 2012


"$r.installations" only works if the attribute is public in RuleObject (and numeric).
try $r.getInstallations() instead ...

Also, always have a look to the generated DRL ("View Source" under Guvnor)

----- Mail original -----
De: "Manasi" <manasi.a.damle at capgemini.com>
À: rules-users at lists.jboss.org
Envoyé: Vendredi 11 Mai 2012 12:34:02
Objet: [rules-users] Formula error in Business Rule(Guided editor)

Hi,

Currently I am facing following issue while inserting a formula in Business
Rule(Guided Editor): 
1) I have written following formula to be executed in Business Rule(Guided
Editor): 
WHEN   
1. 
 The following exists: 
     There is a RuleObject [$r] with: 
     installations < 100 
   
THEN   
1.   
Insert RuleObject: 
     calulatedValue   = $r.installations*3 

But it gives error 'Unable to analyse expression' when i try to Verify the
rule. 
I want my end result will be a calculated value instead of Literal value. 

Please let me know the correct syntax to use formula in this type of rule. 

Thnaks.


--
View this message in context: http://drools.46999.n3.nabble.com/Formula-error-in-Business-Rule-Guided-editor-tp3979546.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



More information about the rules-users mailing list