Hi,
I would like to monitor the progress of a XPL pipeline in which I have a oxf:xforms-submission processor. A setvalue is fired when the submission is done (ev:event="xforms-submit-done") but the target instance is not found. Is it the right way to do that ? you can see my example in the file attached. Thanks 2010-10-28 00:18:11,734 INFO ProcessorService - /currency-converter/services/ConversionRate - Received request 2010-10-28 00:18:13,312 WARN XFormsServer - xxforms:instance() - instance not found {instance id: "ConversionRate-step"} <p:processor name="oxf:xslt"> <p:input name="data" href="#instance"/> <p:input name="config"> <xsl:stylesheet version="2.0"> <xsl:template match="/"> <xforms:submission method="post" action="http://www.webservicex.net/CurrencyConvertor.asmx" mediatype="text/xml; action=http://www.webserviceX.NET/ConversionRate"> <xforms:setvalue ev:event="xforms-submit-done" ref="xxforms:instance('ConversionRate-step')/result/step">1</xforms:setvalue> </xforms:submission> </xsl:template> </xsl:stylesheet> </p:input> <p:output name="data" id="submission"/> </p:processor>currency-converter.zip |
Administrator
|
Where is "ConversionRate-step"?
oxf:xforms-submission is not able to access anything but its little universe where oxf:xforms-submission is running. -Erik On Fri, Oct 29, 2010 at 12:19 AM, Olivier Thery <[hidden email]> wrote: > > Hi, > > I would like to monitor the progress of a XPL pipeline in which I have a > oxf:xforms-submission processor. > A setvalue is fired when the submission is done > (ev:event="xforms-submit-done") but the target instance is not found. > > Is it the right way to do that ? > you can see my example in the file attached. > > Thanks > > > 2010-10-28 00:18:11,734 INFO ProcessorService - > /currency-converter/services/ConversionRate - Received request > 2010-10-28 00:18:13,312 WARN XFormsServer - > xxforms:instance() - instance not found {instance id: "ConversionRate-step"} > > > <!-- Prepare the submission --> > <!-- ********************** --> > <p:processor name="oxf:xslt"> > <p:input name="data" href="#instance"/> > <p:input name="config"> > <xsl:stylesheet version="2.0"> > <xsl:template match="/"> > <xforms:submission method="post" > action="http://www.webservicex.net/CurrencyConvertor.asmx" > mediatype="text/xml; > action=http://www.webserviceX.NET/ConversionRate"> > <xforms:setvalue ev:event="xforms-submit-done" > > ref="xxforms:instance('ConversionRate-step')/result/step">1</xforms:setvalue> > </xforms:submission> > </xsl:template> > </xsl:stylesheet> > </p:input> > <p:output name="data" id="submission"/> > </p:processor> > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3018569/currency-converter.zip > currency-converter.zip > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-setvalue-from-XPL-pipeline-on-xxforms-instance-value-tp3018569p3018569.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
The instance 'ConversionRate-step' is in the same model as other instances and submission. The submission 'ConversionRate-submission' calls an XPL pipeline, which fires a oxf:xforms-submission in which there is the setvalue for the instance 'ConversionRate-step' . Olivier <xforms:model id="main-model"> <!-- Instance with query parameters for calling the webservice --> <xforms:instance id="params"> <xi:include href="input:instance" xxi:omit-xml-base="true"/> </xforms:instance> <!-- Instance with response from the webservice --> <xforms:instance id="ConversionRate-response"> <dummy/> </xforms:instance> <!-- Instance with response from the webservice --> <xforms:instance id="ConversionRate-step"> <result> <step/> </result> </xforms:instance> <!-- Submission to our service that calls conversion rate webservice --> <xforms:submission ref="instance('params')" replace="instance" instance="ConversionRateresponse" id="ConversionRate-submission" validate="false" method="post" resource="/currency-converter/services/ConversionRate" xxforms:show-progress="true"/> </xforms:model> |
Administrator
|
Olivier,
That's what I thought. So the bottom line is that the faceless form created by oxf:xforms-submission cannot see your other form. If you want to monitor progress from XForms, you will need another solution. (And it might not be easy.) -Erik On Tue, Nov 2, 2010 at 4:26 PM, Olivier Thery <[hidden email]> wrote: > > Hi Erik, > > The instance 'ConversionRate-step' is in the same model as other instances > and submission. > The submission 'ConversionRate-submission' calls an XPL pipeline, which > fires a oxf:xforms-submission > in which there is the setvalue for the instance 'ConversionRate-step' . > > Olivier > > > <xforms:model id="main-model"> > > <!-- Instance with query parameters for calling the webservice --> > <xforms:instance id="params"> > <xi:include href="input:instance" xxi:omit-xml-base="true"/> > </xforms:instance> > > <!-- Instance with response from the webservice --> > <xforms:instance id="ConversionRate-response"> > <dummy/> > </xforms:instance> > > <!-- Instance with response from the webservice --> > <xforms:instance id="ConversionRate-step"> > <result> > <step/> > </result> > </xforms:instance> > > <!-- Submission to our service that calls conversion rate webservice --> > <xforms:submission ref="instance('params')" replace="instance" > instance="ConversionRateresponse" > id="ConversionRate-submission" validate="false" > method="post" > resource="/currency-converter/services/ConversionRate" > xxforms:show-progress="true"/> > > </xforms:model> > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-setvalue-from-XPL-pipeline-on-xxforms-instance-value-tp3018569p3024637.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |