[rules-users] Writing calculation in .drl

Edson Tirelli tirelli at post.com
Mon May 21 11:42:49 EDT 2007


   Joshua,

   Function bodies and consequence blocks are plain java code blocks...
anything you can do in a java code block you can do in there.

   []s
   Edson

2007/5/21, Joshua Jackson <joshua.java at gmail.com>:
>
> Dear all,
>
> I've tried writing calculation within function or the rules block but
> it seems can not run. I also could not find any examples that has
> calculation in .drl file. Would it be possible to have calculation
> within .drl, or do we have to write a method within .java file for the
> calculation
>
> Thanks in advance
>
> --
> YM!: thejavafreak
> Blog: http://www.nagasakti.or.id/roller/joshua/
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070521/42f17812/attachment.html 


More information about the rules-users mailing list