Did you initialise your application data with workingmemoroy.setApplicationDat("t1", new Instance())

Mark
[EMAIL PROTECTED] wrote:
Hi,
Sorry to ask a question thats been asked before but I couldn't find a satisfactory reply. Is it possible to use application-data in the following manner:

 <application-data identifier="t">Transaction</application-data>


<rule name="rule1">
...............

     <java:consequence>
            t.setActionName("red");
</java:consequence>
  </rule>


and then from my program do workingMemory.getApplicationData("t"); Right now I am receiving a Null Pointer exception in the consequence block. This is solved by doing
<java:consequence>
te = new Transaction(); t.setActionName("red"); </java:consequence>


However obviously then when this si called workingMemory.getApplicationData("t"), t does not hold the modified value.

Thanks

Caroline Grima

Reply via email to