Hi,

I have corrected my scheduler call as suggested. Now when I hit the start button, nothing seems to happen. I have checked that the scheduled pipeline is being called - certainly the null-serializers I use at the start and the end work fine but the rest of the pipeline is not, Here is my scheduler:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
          xmlns:oxf="http://www.orbeon.com/oxf/processors";
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>

  <!-- Start the scheduled harvesting -->
  <p:processor name="oxf:scheduler">
    <p:input name="config">
      <config>
        <start-task>
          <name>Harvest</name>
          <start-time>now</start-time>
          <interval>15000</interval>
          <synchronized>true</synchronized>
          <processor-uri>oxf/processor/pipeline</processor-uri>
          <input name="config" url="oxf:/harvest/harvest.xpl"/>
        </start-task>
      </config>
    </p:input>
  </p:processor>

</p:config>

And here is the harvest.xpl that it schedules:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
xmlns:oxf="http://www.orbeon.com/oxf/processors";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xdb="http://orbeon.org/oxf/xml/xmldb";
xmlns:xdt="http://www.w3.org/2003/11/xpath-datatypes";
xmlns:carn="http://www.cacr.caltech.edu/projects/us-vo/schemas/ Carnivore"
xmlns:oai="http://www.openarchives.org/OAI/2.0/";
>


  <p:param type="output" name="data"/>

  <!-- Display message -->
  <p:processor name="oxf:null-serializer">
    <p:input name="data" debug="message">
      <message>Harvest started</message>
    </p:input>
  </p:processor>

<!-- Get list of harvestable registries -->
<p:processor name="oxf:xmldb-query">
<p:input name="datasource" href="../datasource.xml"/>
<p:input name="query">
<xdb:query collection="/db/test" create-collection="true">
declare namespace carn = "http://www.cacr.caltech.edu/projects/us-vo/schemas/Carnivore";;
<Registries>{/carn:HarvestLog/carn:Registry}</Registries>
</xdb:query>
</p:input>
<p:output name="data" id="registries"/>
</p:processor>


<!-- Cycle through list of registries -->
<p:for-each href="#registries" select="//carn:Registry" root="Output" id="output">


<p:processor name="oxf:pipeline">
<p:input name="config" href="harvester.xpl"/>
<p:input name="instance" href="current()"/>
<p:input name="resumptionToken" href="aggregate('resumptionToken')"/>
<p:output name="output" ref="output"/>
</p:processor>


<p:processor name="oxf:xslt">
<p:input name="data" href="current()"/>
<p:input name="config">
<xdb:update collection="/db/test" xsl:version="2.0">
<xsl:variable name="location" select="//carn:URL"/>
<xsl:variable name="time" select="adjust-dateTime-to-timezone(current-dateTime(), xdt:dayTimeDuration('PT0H'))"/>
<xu:modifications xmlns:xu="http://www.xmldb.org/xupdate"; version="1.0">
<xu:update select="/carn:HarvestLog/carn:Registry[carn:URL = '{$location}']/carn:DateLastHarvested/text()"><xsl:value-of select="concat(substring(xs:string($time), 1, 19), 'Z')"/></xu:update>
</xu:modifications>
</xdb:update>
</p:input>
<p:output name="data" id="update"/>
</p:processor>


    <p:processor name="oxf:xmldb-update">
      <p:input name="datasource" href="../datasource.xml"/>
      <p:input name="query" href="#update"/>
    </p:processor>

  </p:for-each>

  <!-- Display message -->
  <p:processor name="oxf:null-serializer">
    <p:input name="data" debug="message">
      <message>Harvest ended</message>
    </p:input>
  </p:processor>

  <!-- Result -->
  <p:processor name="oxf:identity">
    <p:input name="data" href="#output"/>
    <p:output name="data" ref="data"/>
  </p:processor>

</p:config>

The only thing that I can think of is that the output is not connected - would this prevent it running?

        Cheers,

        Matthew



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to