[rules-users] Decision table multiple sheets...

Wolfgang Laun wolfgang.laun at gmail.com
Wed Dec 21 05:37:41 EST 2011


By definition (see the "Expert" manual) only sheet 1 is used for
generating rules.

For controlling rule firing you may consider using any of the rule
attributes supported by spreadsheets, e.g., agenda-group.

-W

On 21/12/2011, Sumeet Karawal <sumeet.karawal at tcs.com> wrote:
>
> Hi,
>
> I am having my rules in a Decision Table (.xls)
>
> There I have 3 sheets for rules.
>
> Like in Sheet1 there are two Rule Tables... In Sheet2 there are 2 and in
> Sheet3 there is only 1.
>
> When I am creating the knowledgebase and firing rules, the rules that are
> in the Sheet1 are getting fired. But the rules in other sheets are not
> getting fired.
>
> When I convert them to String to check using this code :
>
> String str = DecisionTableFactory.loadFromInputStream
> (ResourceFactory.newClassPathResource
> ("com/sample/MemberDiscountRules.xls").getInputStream(), dtconf);
> System.out.println(str);
>
> I can see the rules that are present in Sheet1 only.
>
> Please anybody help me on this. How can I get the rules in other two sheets
> to get fired.
> Also how can we fire the rules of only a particular Rule table in the
> decision table.
>
> Thanks & Regards,
> Sumeet
>
> Mailto: sumeet.karawal at tcs.com
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list