Re: Wod Validation error

From: Pierre Frisch (pierre.frisc..pearway.com)
Date: Mon Sep 25 2006 - 19:43:58 EDT

  • Next message: Stéphan Mertz: "EOModel Verification Failures"

    I must either be very tired or I really do not understand how this is
    meant to work.

    I have inverted the condition and now I have the contrary error:

    <?xml version="1.0" encoding="UTF-8"?>
    <wodefinitions>
            <wo class="SPRegistrationErrorConditional" wocomponentcontent="true">

                    <binding name="attributeTypeName"/>
                    <binding name="addressType"/>
                    <binding name="key"/>

                    <validation message="The error conditional must include either an
    &quot;attributeTypeName&quot; or an &quot;addressType&quot; /
    &quot;key&quot; pair.">
                            <and>
                                    <unbound name="attributeTypeName"/>
                                    <or>
                                            <unbound name="addressType"/>
                                            <unbound name="key"/>
                                    </or>
                            </and>
                    </validation>
            </wo>
    </wodefinitions>

    This produces an error:

    addressError: SPRegistrationErrorConditional {
         addressType = currentAddressType;
         key = currentKey;
    }

    But not this:

    userNameAlert: SPRegistrationErrorConditional {
         attributeTypeName = "userName";
    }

    Pierre

    On 23-Sep-06, at 8:52 PM, Mike Schrag wrote:

    > That validation says is attributeTypeName is unbound then show that
    > error, OR is key and addressType are unbound, then show that
    > error. In your case, attributeTypeName IS bound, so that doesn't
    > cause it; but key and addressType ARE unbound, so that DOES cause
    > the error. I think that is actually right?
    >
    > ms
    > e
    > On Sep 23, 2006, at 7:35 PM, Pierre Frisch wrote:
    >
    >> I have a curious validation error in a wod file:
    >>
    >> I have a component with an api defined as:
    >>
    >> <?xml version="1.0" encoding="UTF-8"?>
    >> <wodefinitions>
    >> <wo class="SPRegistrationErrorConditional"
    >> wocomponentcontent="true">
    >>
    >> <binding name="attributeTypeName"/>
    >> <binding name="addressType"/>
    >> <binding name="key"/>
    >>
    >> <validation message="The error conditional must include either
    >> an &quot;attributeTypeName&quot; or an &quot;addressType&quot; /
    >> &quot;key&quot; pair.">
    >> <or>
    >> <unbound name="attributeTypeName"/>
    >> <and>
    >> <unbound name="key"/>
    >> <unbound name="addressType"/>
    >> </and>
    >> </or>
    >> </validation>
    >> </wo>
    >> </wodefinitions>
    >>
    >> and I have a calling component withe the following in the wod file:
    >>
    >> userNameAlert: SPRegistrationErrorConditional {
    >> attributeTypeName = "userName";
    >> }
    >>
    >> This yield the following error message:
    >> Severity and Description Path Resource Location Creation Time Id
    >> The error conditional must include either an "attributeTypeName"
    >> or an "addressType" / "key" pair. ElectronicCommerce/Components/
    >> SPRegistration.wo SPRegistration.wod line 9 1159053334516 464023
    >> This does not look right.
    >>
    >> I am running Eclipse 3.2 and wolips 3348
    >>
    >> Pierre
    >



    This archive was generated by hypermail 2.0.0 : Mon Sep 25 2006 - 19:44:12 EDT