Gyorgy Knyihar schrieb:
> Hello,
> 
> I tried to use the and conditions between three data checks but SWAMP takes 
> only
> the last two and ingnores the 3rd one. Is it possible to make AND conditions
> between more than two data checks? If yes how? I tried it several way but I 
> get
> error messages when I reload the templates.
> 
> Please find below part of the workflow.xml.
> 
> Thanks, Gyorgy
> 
>    <edge to="sales" event="DATAEDIT1_OK">
> 
>             <and>
> 
>             <data check="regexp"
>             field="ADSLorderdataset.adsl.contract_filed"
>             value="true"/>
> 
>             <data check="regexp"
>             field="ADSLorderdataset.adsl.contract_scanned"
>             value="true"/>
> 
>             <data check="regexp"
>             field="ADSLorderdataset.adsl.contract_forwarded_to_sales"
>             value="true"/>
> 
>             </and>
> 
>         </edge>
> 

Hi Gyorgy,
the AND and OR conditions were designed to take just 2 arguments.
But it is easy to solve your problem by nesting 2 AND conditions:

<and>
   <and>
      <condition1>
      <condition2>
   </and>
   <condition3>
</and>

I will improve the documentation for that case, and maybe
add support for more than 2 conditions to the AND operand.

Greetings

-- 
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Internal Tools
"From the age of uniformity, from the age of solitude,
from the age of Big Brother, from the age of doublethink - greetings!", 1984


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
swamp-devel mailing list
swamp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swamp-devel

Reply via email to