[rules-users] Business Logic Validation Using Rules

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jul 18 14:41:51 EDT 2013


On 18/07/2013, Shazin Sadakath <shazin.swe at gmail.com> wrote:
> Hi,
>
> I was expecting such an answer.
>
> The Drools Version I use is 5.5.0.Final and I value any idea as to why this
> behavior is happening.

#1: Bug in your code.
#2: Bug in Drools' code.

No crystal balls here.

-W


>
> Regards,
> Shazin Sadakath
>
>
> On Thu, Jul 18, 2013 at 2:33 PM, Wolfgang Laun
> <wolfgang.laun at gmail.com>wrote:
>
>> Thanks for the information.
>> -W
>>
>> On 18/07/2013, Shazin Sadakath <shazin.swe at gmail.com> wrote:
>> > Hi
>> >
>> > I am currently writing a set of Rules to Validate Some Business Logic
>> > and
>> > if The Criteria in When clause is met throw an Exception.
>> >
>> > Currently I have two rules. I use a StatelessKnowledgeSession and
>> > CommandExecutor.execute method to fire the rules.
>> >
>> > But while testing I created a scenario to fire one of the rules and
>> > throw
>> > an exception then created another scenario to not to throw an Exception
>> > (Valid Domain Object). But in this case also it is throwing an
>> > Exception
>> > with info related to Failed Domain Object.
>> >
>> > Regards,
>> > Shazin Sadakath
>> >
>> _______________________________________________
>> 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