Quantcast

oxf:null-serializer - Priority

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

oxf:null-serializer - Priority

Huong Ngo
Hi everyone,

I am still a bit unsure regarding the run priority of "oxf:null-serializer".

My intention is that I would like to have the oxf:url-generator finished its job - the loading pdf to the memory is completely finished before the deletion processor is started to delete the physical pdf file in the file system.
...

<p:processor name="oxf:xslt">
        <p:input name="data" href="#publication-start-request"/>
        <p:input name="config">
                <config xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
                    <url>
                               <xsl:value-of select="concat('file:///',(//path-to-outputpdf)"/>
                    </url>
                    <mode>binary</mode>
                </config>
        </p:input>
      <p:output name="data" id="PDF_Url"/>
  </p:processor>

<p:processor name="oxf:url-generator">
        <p:input name="config" href="#PDF_Url"/>
        <p:output name="data" id="PDF"/>
</p:processor>

<p:processor name="oxf:null-serializer">
        <p:input name="data" href="#PDF"/>
</p:processor>


<p:processor name="fs-delete-processor">
    <p:input name="data" href="#path-to-outputpdf-config"/>
    <p:output name="data" id="output-path-to-outputpdf"/>
</p:processor>


<p:processor name="oxf:null-serializer">
        <p:input name="data" href="#path-to-outputpdf"/>
</p:processor>
....

So the above sample code and in order of the oxf:null-serializer in the context work for my purpose or I am missing some points ?

Thanks,

Huong
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: oxf:null-serializer - Priority

Alessandro  Vernet
Administrator
Hi Huong,

Processors that have no output (and the processors they are connected to) are executed first, in the order they are mentioned in your pipeline. In your case, are you sure that your second oxf:null-serializer isn't supposed to read from output-path-to-outputpdf? If that was the case, then the PDF would be generated first, and the file deleted next.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: oxf:null-serializer - Priority

Alessandro  Vernet
Administrator
Hi Huong,

I'm not sure to follow you: did you solve that problem? And if not, are you saying that the XPL you quoted was incorrect? In which case could you attach the correct XPL (or, if necessary, a simplified version thereof)?

Alex

On Mon, Sep 5, 2016 at 5:48 AM, Huong Ngo <[hidden email]> wrote:
Hi Alex,

Well, it was my fault but actually in my case the second oxf:null-serializer
reads from "output-path-to-outputpdf".

And if that is the case, then the PDF would still be generated first, and
the file deleted next. Or what would be happened?

Thanks a lot,

Best regards,
Huong


--
View this message in context: http://discuss.orbeon.com/oxf-null-serializer-Priority-tp4661749p4661752.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: oxf:null-serializer - Priority

Huong Ngo
Hi Alex,

Yes. The problem was already solved.

Thanks a lot !

Best regards,
Huong
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: oxf:null-serializer - Priority

Alessandro  Vernet
Administrator
Hi Huong,

OK, great, I'm glad you found a solution to this one, and thanks for the clarification.

Alex

On Thursday, September 8, 2016, Huong Ngo <[hidden email]> wrote:
Hi Alex,

Yes. The problem was already solved.

Thanks a lot !

Best regards,
Huong

--
View this message in context: http://discuss.orbeon.com/oxf-null-serializer-Priority-tp4661749p4661756.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;orbeon+unsubscribe@googlegroups.com&#39;)">orbeon+unsubscribe@....
To post to this group, send email to <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;orbeon@googlegroups.com&#39;)">orbeon@....

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Loading...