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 |
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 |
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, 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 |
Hi Alex,
Yes. The problem was already solved. Thanks a lot ! Best regards, Huong |
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, 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 |
Free forum by Nabble | Edit this page |