Hi,
I am trying to implement a workflow in an xform... so basically I want to send the form data to a web service (which I was suggested to use xform not xml pipelines for) So to do step 2 I want to take what was inputted into the web service and the response from the webservice and pass that into an pipeline which will see if the web service response was and then send the appropriate email based on the response. I have been trying to read up on how I would send 2 xml chunks into the piple line using the submission... Is there any other way I can do this? I thought the best approach would be to create a "super" xml instance which would be an include of the 2 xml chunks and pass that in... Please let me know if there are ways to pass in 2 parameters to a pipleline and how I would do that using a submission... I have included the code to explain what I am trying to do... Please, any thoughts would be very helpful, I am tearing what little hair I have out... Regards Mark <xforms:model> <!-- This is filled in by my form --> <xforms:instance id="ws-request"> <soap-env:Envelope> <soap-env:Body> <service:catalystic.test.exported> <service:name>94403</service:name> <service:emailAddress></service:emailAddress> </service:catalystic.test.exported> </soap-env:Body> </soap-env:Envelope> </xforms:instance> <!-- This is where the response from the first step in my workflow goes... --> <xforms:instance id="ws-response"> <dummy/> </xforms:instance> <!-- Here I am trying to make a super chunk --> <xforms:instance id="soap-request-reponse"> <soap> <!--<xi:include xpointer="element(/xhtml:html/xhtml:head/xforms:model/xforms:instance[1])" parse="xml"/>--> </soap> </xforms:instance> <xforms:instance id="workflow-reponse"> <output></output> </xforms:instance> <xforms:submission id="first-step-submission" method="post" action="http://192.168.1.8:8080/webtools/control/SOAPService/catalystic.test.exported" ref="instance('ws-request')" replace="instance" instance="ws-response" mediatype="application/soap+xml; action="http://192.168.1.8:8080/webtools/control/SOAPService/catalystic.test.exported"" xxforms:username="iodine_webservice" xxforms:password="ofbiz"> <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while saving!</xforms:message> <xforms:send ev:event="xforms-submit-done" submission="second-step-submission"/> </xforms:submission> <xforms:submission id="second-step-submission" method="post" action="/ofbiz/test-email-workflow" ref="instance('soap-request-response')" replace="instance" instance="workflow-response"> <xforms:message level="modal" ev:event="xforms-submit-error">error on 2nd step</xforms:message> <xforms:message level="modal" ev:event="xforms-submit-done">done 2nd step</xforms:message> </xforms:submission> </xforms:model> -- 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 |
Is the response from the first step in your workflow a task that passes your XForm to a webservice and retrieves some results back from it, which is then passed back to the form?
You can also replace the entire document with the XML result (repace="all") or you can replace an instance(your response instance). Just my thoughts. Not very useful to your questions
|
Hi Someperson,
The reason I replace an instance is because I want to keep the form data to be able to submit that and response to my XPL document which should check the response is correct and then use the inputs to send emails to that person, thanking them... or whatever I have been wrestling with the XPL all day and cannot figure this out... Any help would be appreciated... even a simple "hello world" xpl would be useful, something that parses the inputs and writes out a response which would replace an instance in the form... Something like that would be awsome... I have tried to mimic the google translate ... but I cannot even get that to where I want it... Thanks for your thoughts! Regards Mark On Fri, Feb 29, 2008 at 8:10 PM, someperson <[hidden email]> wrote:
-- 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 |
Administrator
|
Mark,
On Fri, Feb 29, 2008 at 11:16 AM, Mark Ellul <[hidden email]> wrote: > Any help would be appreciated... even a simple "hello world" xpl would be > useful, something that parses the inputs and writes out a response which > would replace an instance in the form... Something like that would be > awsome... I have tried to mimic the google translate ... but I cannot even > get that to where I want it... You can only send one XML document through an xforms:submission. So with an xforms:submission you will need ot aggregate both document in a single instance before you can send it. You can use xxforms:call-xpl() from XPath expressions in XForms (typically an xforms:insert), which lets you call XPL pipeline with multiple inputs. You can find more on this here: http://www.orbeon.com/ops/doc/reference-xforms-2#ops-extensions I hope this helps, Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.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 |
Hi Alex,
Thanks for the tip, I had figured out a way to aggregate the content into one XML, however this way seems a neat approach as well! Regards Mark On Wed, Mar 5, 2008 at 1:01 AM, Alessandro Vernet <[hidden email]> wrote: Mark, -- 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 |