Moving action pipelines in their own directory

This commit is contained in:
Eric van der Vlist 2012-04-13 10:53:25 +02:00
parent a0bd1a56fd
commit 11027c068a
4 changed files with 30 additions and 10 deletions

View File

@ -0,0 +1,11 @@
Pipelines in this directory are called by the scheduler.
Their name is the name of the corresponding action.
Inputs:
* data: the action
Outputs: None
These pipelines must take care of removing the action from the queue once they are done.

View File

@ -24,7 +24,8 @@
<!-- Store the archive in the database -->
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="#data">
<config xsl:version="2.0">
<relpath>
@ -149,7 +150,8 @@
<!-- Store the rewritten document in the database -->
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="#data">
<config xsl:version="2.0">
<relpath>
@ -172,7 +174,8 @@
<!-- Update the archive index -->
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="#data">
<config xsl:version="2.0">
<relpath>
@ -210,7 +213,8 @@ for $as in /archive-set
<!-- Update the queue -->
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="aggregate('root', #data, #links)">
<config xsl:version="2.0">
<relpath>queue.xml</relpath>
@ -262,7 +266,8 @@ for $a in /queue/action where $a/@uuid = $(uuid) return
<p:otherwise>
<!-- Update the archive index -->
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="#data">
<config xsl:version="2.0">
<relpath>
@ -296,7 +301,8 @@ for $as in /archive-set
<!-- Update the queue -->
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="#data">
<config xsl:version="2.0">
<relpath>queue.xml</relpath>

View File

@ -40,7 +40,8 @@
</p:processor>
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" href="#data-access-data"/>
<p:input name="param">
<xquery><![CDATA[
@ -65,7 +66,8 @@ for $a in /queue/action where $a/@uuid = $(uuid) return
</p:processor>
<p:processor name="oxf:pipeline">
<p:input name="config" href="data-access.xpl"/>
<p:input name="config" href="/data-access.xpl
"/>
<p:input name="data" transform="oxf:xslt" href="#data-access-data">
<config xsl:version="2.0">
<relpath>

View File

@ -33,8 +33,9 @@
<p:input name="config" transform="oxf:xslt" href="current()">
<config xsl:version="2.0">
<url>
<xsl:text>oxf:/</xsl:text>
<xsl:value-of select="/action/@type"/>
<xsl:text>oxf:/actions/</xsl:text>
<!-- Remove / and \ for security reasons -->
<xsl:value-of select="translate(/action/@type, '/\', '')"/>
<xsl:text>.xpl</xsl:text>
</url>
</config>