Login  Register

can't get 2 processor in 1 pipeline to work

Posted by James Liang on May 11, 2011; 7:27am
URL: https://discuss.orbeon.com/can-t-get-2-processor-in-1-pipeline-to-work-tp3514050.html

Hi all,

My understanding of pipeline must be missing something obvious.  I
have a delete_all.xpl pipe line that clears the database.  I also have
a save.xpl pipeline that populate the database.  When I call these
pipe line individually they worked.

However, when I combine these two pipeline inside the save_all.xpl,
save_all.xpl doesn't work.  When save_all.xpl is called, it seems to
only execute save.xpl (from looking at the log).  Since the
delete_all.xpl didn't execute to clean up the database first, the
save.xpl fails on database constraint violation.

Isn't each processor inside p:config called sequentially?


content of save_all.xpl :

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
xmlns:sql="http://orbeon.org/oxf/xml/sql"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:xi="http://www.w3.org/2001/XInclude">
  <p:param type="input" name="instance" />
  <p:param type="output" name="data" />

  <p:processor name="oxf:pipeline">
    <p:input name="config" href="delete_all.xpl" />
  </p:processor>

  <p:processor name="oxf:pipeline">
    <p:input name="config" href="save.xpl" />
    <p:input name="instance" href="#instance" />
    <p:output name="data" ref="data" />
  </p:processor>
</p:config>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws