[rules-users] eval in lhs

HonorGod jagadeesh.motamarri at barclayscapital.com
Thu Jan 7 13:08:29 EST 2010


Can i have the following as one of my conditions in decision table ?

eval(convertYesOrNo("$param").equals(myObject.getFlag()))

where convertYesOrNo() is a function inside decision table.

I get the following error - 



Exception e org.drools.RuntimeDroolsException: Exception executing predicate
com.barcap.efg.fine.drools.dataobject.Rule_Corporate_Action_12_0Predicate0Invoker at 490d7410
org.drools.RuntimeDroolsException: Exception executing predicate
com.barcap.efg.fine.drools.dataobject.Rule_Corporate_Action_12_0Predicate0Invoker at 490d7410
	at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:279)
	at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:143)
	at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:360)
	at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:344)
	at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:185)
	at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:146)
	at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1046)
	at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1001)
	at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:788)
	at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:216)
	at 

Thanks.
-- 
View this message in context: http://n3.nabble.com/eval-in-lhs-tp112964p112964.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list