Do you have a stack trace or something like that?<br><br><div class="gmail_quote">2010/11/21 Piyush Goel <span dir="ltr"><<a href="mailto:piyush.goel@dealhunt.in">piyush.goel@dealhunt.in</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
We are using Drools engine on our client written in C#. We are using
IKVM to convert the drools jar and our java beans into dll's using IKVM.
We have a rule similar to this:-
<br><br>rule "aggregate rule"
<br> when
<br> $b : Bill(billAmount > 100)
<br> $n : Number(doubleValue > 100) from accumulate ( $l :
LineItem() from $b.findItems("color", "blue"),
sum($l.getSellingValue()))
<br> then
<br> VoucherSeries fact0 = new VoucherSeries();
<br> fact0.setSeriesCode( "aggregate voucher" );
<br> insert(fact0 );
<br> voucherlist.add(fact0);
<br> System.out.println("sum" + $n);
<br>end
<br><br><br>This rule works fine when it is run with java based drools
API's, but while running it with IKVM converted drools, it throws the
following error:-
<br><br>Unable to cast object of type 'AccumulateMemory' to type
'FromMemory'.
<br><br>Any ideas on what might be going wrong ?<br><br>thanks,<br><font color="#888888">piyush<br>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>