[rules-users] XML rule: Wrongly interpreted Numeric String to Number

Wolfgang Laun wolfgang.laun at gmail.com
Fri Dec 14 03:02:21 EST 2012


Drools' XML representation of DRL isn't up-to-date, contains bugs and
isn't maintained. AFAIK, there are no plans to change this status.

-W


On 14/12/2012, Christina Lau <lau.christina at hit.com.hk> wrote:
> Dear all,
>
> System is generating XML rule file with literal-restriction like that:
> ...
>             <field-constraint field-name="myStringTypeField">
>
>               <literal-restriction evaluator="=="
>                 value="0020" />
>             </field-constraint>
> ...
>
> I am expecting the constraint is in form of
>
>    myStringTypeField == "0020"
>
> However, the outcome is
>
>   myStringTypeField == 0020   (the double quote is missed)
>
> causing my rule fails all the time.
>
> Does anyone know if it it the problem of XML parsing? If yes, can I do
> something to override the default parser behaviour?
>
> Thank you very much.
> Christina
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/XML-rule-Wrongly-interpreted-Numeric-String-to-Number-tp4021198.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> 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