cancel
Showing results for 
Search instead for 
Did you mean: 

Template API

skynet5
Champ in-the-making
Champ in-the-making
Hi All,

I have a requirement to build an XForms like API.  I understand that AVM which supported this is now not really an option moving forward.

I would like to create a template in Alfresco, and provide an API to external systems to use the template to render forms within their own system, collect data, and then send the data over and for that to be stored within Alfresco.  Whether they send just the data, or the data already merged with the template, I'm not too concerned.

Any pointers?

Skynet.
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
You can use Alfresco share forms as a replacement of XForms.You can explore formservices and replication services in alfresco.
It seems like you are having seperate authoring environment where you will be creating contents and storing it in alfresco, If that is the case you can simply create UI forms with any good UI framework and then use alfresco webscripts to store those contents in alfresco.

skynet5
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the response.

Content will be authored with in an app and a website, we would want to proxy Alfresco through an ESB, and the App would be going through a MBaaS layer.  My vision is to allow clients (app/web) to dynamically render forms based on the template definition, and for a single API to be used that all content (for all different forms) can be submitted through, to in a generic way, validated, then stored in Alfresco.  i.e One end point handling many forms.

From what I've understood so far:

Alfresco would not directly support the concept of creating a form definition, which Alfresco could then use to validate submitted content against when a user tries to store data.

So we would use Alfresco to store the content only, and build a validation layer outside of Alfresco to ensure all captured fields are completed as needed.  It is likely that we would just store JSON data to represent user entered data.


I looked at Aspects, but my usecase would be misusing the functionality I believe.


Potentially if Alfresco is only storing, and cannot master templates and validate the content, I may as well just go with a database instead…It is just we have Alfresco on the estate and I'm wondering if it can help support this solution


Thanks,

Sky

sangeetha
Champ in-the-making
Champ in-the-making
Hello,
I'm new to Alfresco, I want to know if any backup progression is available within the application to save our documents even when it was corrupted/distracted, or any other procedure to get backup…?
Hope your help., thanks.