rule "go, go gadget validator"when$l : LoadApplicationBean( fullName == "" )thenmyGlobal.log("An inappropriate name");end
From: prateek.katiyar@wipro.com [mailto:prateek.katiyar@wipro.com]
Sent: 03 October 2007 10:57
To: Anstis, Michael (M.)
Subject: Re:Help meHiThanks for your reply.I have three rules in my rule file.I want that when i run my first java program,out of those three rules only first two rules should be validatedand when i run a other java program the only third rule should be validated.For this i put my first two rules in one agenda group and i put the third rule in another agenda group.Now when i run my first java program then instead of validating only the first two rules,the third rule is also validating and giving ma a exception as:org.drools.RuntimeDroolsException
: java.lang.NullPointerExceptionat org.drools.rule.EvalCondition.isAllowed(
EvalCondition.java:75)at org.drools.reteoo.EvalConditionNode.assertTuple(
EvalConditionNode.java:141)at org.drools.reteoo.CompositeTupleSinkAdapter.createAndPropagateAssertTuple(
CompositeTupleSinkAdapter.java:73)at org.drools.reteoo.LeftInputAdapterNode.assertObject(
LeftInputAdapterNode.java:131)at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(
SingleObjectSinkAdapter.java:20)at org.drools.reteoo.ObjectTypeNode.assertObject(
ObjectTypeNode.java:168)at org.drools.reteoo.Rete.assertObject(
Rete.java:168)at org.drools.reteoo.ReteooRuleBase.assertObject(
ReteooRuleBase.java:190)at org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(
ReteooWorkingMemory.java:163)at org.drools.common.AbstractWorkingMemory.executeQueuedActions(
AbstractWorkingMemory.java:1241)at org.drools.common.AbstractWorkingMemory.fireAllRules(
AbstractWorkingMemory.java:421)at org.drools.common.AbstractWorkingMemory.fireAllRules(
AbstractWorkingMemory.java:392)at com.wipro.rfq.report.bean.Validator.main(
Validator.java:87)Caused by:
java.lang.NullPointerExceptionat rules.Rule_validate_FullName_0.eval0(
Rule_validate_FullName_0.java:9)at rules.Rule_validate_FullName_0Eval0Invoker.evaluate(
Rule_validate_FullName_0Eval0Invoker.java:16)at org.drools.rule.EvalCondition.isAllowed(
EvalCondition.java:71)... 12 more
i am attaching my all three programs with this mail.
Now give me some idea that how can i achieve my requirements?
With RegardsPrateek Katiyar
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com