[rules-users] how to declare an identifier and use it?
yasodhara srinivas
vysrinivas at gmail.com
Wed Jun 13 05:22:44 EDT 2012
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>
On Wed, Jun 13, 2012 at 2:02 PM, Wolfgang Laun <wolfgang.laun at gmail.com>wrote:
> On 13/06/2012, vysrinivas <vysrinivas at gmail.com> wrote:
> >
> > As i am declaring given below.
> >
> > <rule name="12_Line_Validation">
> >
> > <parameter identifier="THeader">
> > <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>
> >
>
> Although this is not a notation that I consider eye-friendly, here's
> one observation:
> In the 2nd condition, there is "TReqLine", the identifier declared in
> the 2nd declaration. But in the 1st condition, in the corresponding
> place, there's "TReqHeader", which isn't declared anywhere.
>
> -W
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
regards,
Srinivas.
9535692441
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120613/3fa8a312/attachment.html
More information about the rules-users
mailing list