You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Colin Chalmers <co...@maxware.nl> on 2003/01/13 13:19:07 UTC

IntakeService rules

Hi all,

Anyone know if it's possible to have an Intake rule which is dependant on another IntakeValue?

For example I have an Object that has 4 int's (say a, b, c, and d) as properties. After inserting I have to check whether 

a<b and c > d

<group name="Foo" key="foo" mapToObject="Foo">
        <field name="a" key="A" type="int" >
               <rule name="one" value="LESS THAN B??">One</rule>
        </field>
        <field name="b" key="B" type="int" >
        </field>
        <field name="c" key="C" type="int" >
               <rule name="one" value="GREATER THAN D??">Two</rule>
        </field>
        <field name="d" key="D" type="int" >
        </field>
</group>

The examples I see (and currently use) for Intake are fixed values ie 1, 20, 255 etc

Any help appreciated

/c