Accessing XForms outside Orbeon - Instances

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing XForms outside Orbeon - Instances

Vedha
This post was updated on .
We have a requirement where we need to process (parsing) the XML instance which is created by a user session. Is there a way to get the current instance as XML, or XML Stream or input stream from a outside system? Like by accessing any URL with the user uuid?

For make it more clear, when a user is building up a form and he is still using it, meanwhile it is possible to get any instance of that form from a external code?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Accessing XForms outside Orbeon - Instances

Alessandro  Vernet
Administrator
Hi Vedha,

I assume that this is for a form you built with Form Builder. Then the answer is yes, and the way to do it would be to have the instance sent to a service that does whatever needs to be done on the instance. At what point in time would this need to happen? When users press on a button in the form?

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

Re: Accessing XForms outside Orbeon - Instances

Vedha
That is correct. I need to get the XML during a user button action. Will you be able to give a sample for this?
Reply | Threaded
Open this post in threaded view
|

Re: Accessing XForms outside Orbeon - Instances

Alessandro  Vernet
Administrator
Vedha, are you somewhat familiar with the "Buttons and Processes"? If not, see the doc linked below. Essentially, you can define a button, have it run a process that you define to run the send() action to POSTs the instance to a URL you provide.

http://doc.orbeon.com/form-runner/advanced/buttons-and-processes/index.html

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet