On 13/06/2012, yasodhara srinivas <vysrinivas(a)gmail.com> wrote:
getInfo() will return TType for me.
Hopefully as a method of THeaderType?!
Check your fact data. Is it what you expect it to be? Add a couple of
rules that just show what you have in tems of THeaderType and
TLineType, respectively.
The combined condition is true if
offType == "Local"
and
( qType != null
or
info/TType == "Offline" ) // or any other value, just not
"Online"
Note that this is true for "Online" as well, just as long as qType !=
null - which isn't quite what you explained in the original mail.
-W
On Wed, Jun 13, 2012 at 3:06 PM, Wolfgang Laun
<wolfgang.laun(a)gmail.com>wrote:
> Another observation: If the relevant field is TType, why do you call
> getInfo()? One would expect getTType(), according to the usual bean
> nomenclature.
> -W
>
> On 13/06/2012, vysrinivas <vysrinivas(a)gmail.com> wrote:
> > sorry. this is my declaration.
> >
> > <rule name="12_Line_Validation">
> >
> > <parameter identifier="TReqHeader">
> >
> >
<java:class>THeaderType</java:class>
> > </parameter>
> >
> > <parameter identifier="TReqLine">
> > <java:class>TLineType</java:class>
> > </parameter>
> >
> > <java:condition>
> > getQType(TReqHeader) != null
> > ||
> > !getInfo(TReqHeader).equals("Online")
> > </java:condition>
> >
> >
> > <java:condition>
> > getOffType(TReqLine).equals("Local")
> > </java:condition>
> >
> > --
> > View this message in context:
> >
>
http://drools.46999.n3.nabble.com/how-to-declare-an-identifier-and-use-it...
> > Sent from the Drools: User forum mailing list archive at
Nabble.com.
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> >
https://lists.jboss.org/mailman/listinfo/rules-users
> >
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
--
regards,
Srinivas.
9535692441