[rules-users] drools with IKVM

Mark Proctor mproctor at codehaus.org
Sun Nov 21 19:30:32 EST 2010


On 21/11/2010 12:56, Leonardo Gomes wrote:
> Do you have a stack trace or something like that?
Being IKVM I doubt the problem is from our end, as it's translating 
stuff to C#. You probably need to isolate the failing test case and get 
the IKVM guys to fix it in IKVM, probably a bad translation.

Mark
>
> 2010/11/21 Piyush Goel <piyush.goel at dealhunt.in 
> <mailto:piyush.goel at dealhunt.in>>
>
>     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:-
>
>     rule "aggregate rule"
>         when
>             $b : Bill(billAmount > 100)
>             $n : Number(doubleValue > 100) from accumulate ( $l :
>     LineItem() from $b.findItems("color", "blue"),
>     sum($l.getSellingValue()))
>         then
>             VoucherSeries fact0 = new VoucherSeries();
>             fact0.setSeriesCode( "aggregate voucher" );
>             insert(fact0 );
>             voucherlist.add(fact0);
>             System.out.println("sum" + $n);
>     end
>
>
>     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:-
>
>     Unable to cast object of type 'AccumulateMemory' to type
>     'FromMemory'.
>
>     Any ideas on what might be going wrong ?
>
>     thanks,
>     piyush
>
>     _______________________________________________
>     rules-users mailing list
>     rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101122/85325283/attachment.html 


More information about the rules-users mailing list