SPI for DataBinding ?

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

SPI for DataBinding ?

Thierry Delprat
Hi,

I apologize in advance: I am completely new to Orbeon and at this point, I am just trying to see if we could use Orbeon with our content server.


Basically, I would like to use Orbeon as a form-based front end on top of a content server that will store the data captured via the forms.


This basically means that I want to be able to:

  • initialize the form from data stored inside the content server
  • save data entered via the form into the content server

So, I am looking for a way to have full data-binding between the Orbeon form and a content server.


On the content server side, I can easily expose REST API (JSON or XML) or even a Java API (since the content server is also Java based).

Is there so SPI inside Orbeon that allows plugging an external server as a DataSource?


I would appreciate any pointer to some doc or code :)


Best regards,


Tiry

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: SPI for DataBinding ?

Alessandro  Vernet
Administrator
Hi Tiry,

What you're looking for is the "Persistence API". It's a REST API that you
can implement to store the data in your CMS, or wherever you want. Orbeon
Forms built-in with 2 implementations of that API: one for the eXist
database (which we embedded with Orbeon Forms), and one for relational
databases. You can find more about this on:

https://doc.orbeon.com/form-runner/api/persistence/

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: SPI for DataBinding ?

Thierry Delprat
In reply to this post by Thierry Delprat
Thank you, this is exactly what I was looking for.
I will start playing with that :)



On Wednesday, May 16, 2018 at 4:01:16 PM UTC-4, Thierry Delprat wrote:
Hi,

I apologize in advance: I am completely new to Orbeon and at this point, I am just trying to see if we could use Orbeon with our content server.


Basically, I would like to use Orbeon as a form-based front end on top of a content server that will store the data captured via the forms.


This basically means that I want to be able to:

  • initialize the form from data stored inside the content server
  • save data entered via the form into the content server

So, I am looking for a way to have full data-binding between the Orbeon form and a content server.


On the content server side, I can easily expose REST API (JSON or XML) or even a Java API (since the content server is also Java based).

Is there so SPI inside Orbeon that allows plugging an external server as a DataSource?


I would appreciate any pointer to some doc or code :)


Best regards,


Tiry

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: SPI for DataBinding ?

Thierry Delprat
In reply to this post by Thierry Delprat
Hi again,

I know I could read the code, but I am not a Scala dev, so I will ask first: is there a doc I can look at in order to have more details about the expected payload format?
Currently, I am using wireshark to capture the HTTP traffic and try to figure out from the http messages sent, but I suspect there may be a better way.

If you have a test I can use to validate a provider implementation, that could definitely work too.

Tiry

On Wednesday, May 16, 2018 at 4:01:16 PM UTC-4, Thierry Delprat wrote:
Hi,

I apologize in advance: I am completely new to Orbeon and at this point, I am just trying to see if we could use Orbeon with our content server.

Basically, I would like to use Orbeon as a form-based front end on top of a content server that will store the data captured via the forms.


This basically means that I want to be able to:

  • initialize the form from data stored inside the content server
  • save data entered via the form into the content server

So, I am looking for a way to have full data-binding between the Orbeon form and a content server.


On the content server side, I can easily expose REST API (JSON or XML) or even a Java API (since the content server is also Java based).

Is there so SPI inside Orbeon that allows plugging an external server as a DataSource?


I would appreciate any pointer to some doc or code :)


Best regards,


Tiry

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: SPI for DataBinding ?

Alessandro  Vernet
Administrator
Hi Tiry, everything /should/ be documented in the Persistence API of the
documentation (don't miss all the subpages). I'd recommend you read the doc
to get a high level understanding of what the API does, and then for the
details rely on Wireshark to see what is sent by Form Runner to the API, and
what the out-of-the-box implementation responds. And of course, just let us
know if you have any question along the way.

https://doc.orbeon.com/form-runner/api/persistence/

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: SPI for DataBinding ?

Thierry Delprat
In reply to this post by Thierry Delprat
Thanks.

I have a minimal working prototype: https://github.com/tiry/nuxeo-orbeon




On Wednesday, May 16, 2018 at 4:01:16 PM UTC-4, Thierry Delprat wrote:
Hi,

I apologize in advance: I am completely new to Orbeon and at this point, I am just trying to see if we could use Orbeon with our content server.


Basically, I would like to use Orbeon as a form-based front end on top of a content server that will store the data captured via the forms.


This basically means that I want to be able to:

  • initialize the form from data stored inside the content server
  • save data entered via the form into the content server

So, I am looking for a way to have full data-binding between the Orbeon form and a content server.


On the content server side, I can easily expose REST API (JSON or XML) or even a Java API (since the content server is also Java based).

Is there so SPI inside Orbeon that allows plugging an external server as a DataSource?


I would appreciate any pointer to some doc or code :)


Best regards,


Tiry

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: SPI for DataBinding ?

Alessandro  Vernet
Administrator
Excellent Thierry, and thank you for sharing! -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet