[rules-users] Converting this DRL into a Decision Table

Michael Neale michael.neale at gmail.com
Thu Mar 1 02:12:40 EST 2007


thats not quite valid DRL.

But you can do that sort of thing,
you have a cell that spans all the field columns, and in that cell put

   p: Person
age     status   ....


etc.


On 2/28/07, Vargas, Michael E <mvargas at adt.com> wrote:
>
>  Hi,
>
>
>
>             I'm currently trying to convert this Rules into a Decision
> Table:
>
>
>
> *rule* "JobLevel"
>
>       *when*
>
>             p : Person( status == Person.NOTRUN, age == "27", person)
>
>       *then*
>
>             System.out.println(p.getJobLevel());
>
>             p.setJobLevel("You're a rookie");
>
>             p.setStatus(Person.RUN);
>
>             *modify*(p);
>
>             System.out.println(p.getJobLevel());
>
> *end*
>
>
>
> The thing I can't seem to figure out is how to bind the p variable to an
> object person. Any help would be much appreciated!!
>
>
>
> Regards,
>
>
>
> Michael Vargas
>
>
>
> _______________________________________________
> 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/20070301/cda18732/attachment.html 


More information about the rules-users mailing list