Moving action pipelines in their own directory
This commit is contained in:
parent
a0bd1a56fd
commit
11027c068a
|
@ -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.
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue