cancel
Showing results for 
Search instead for 
Did you mean: 

questions according integration of Alfresco

jensgoldhammer
Champ in-the-making
Champ in-the-making
Hello all,

our company develops solutions by integrating existing applications via webservices and a bpel engine which coordinates it. We provide user-centric tasks in it and want to support documents interaction for the users. We have seen that there some ways for integrating Alfresco.

Can you provide me some integration hints?

My ideas are:
- Integration via Web Services which can be used to query, fetch and insert documents.

a) First way is that we can have local copies of the documents which are stored in Alfresco and have to assure at the end that changes which have been made during a workflow process are getting back to Alfresco. These files have to be downloaded by the fileserver and we can integrate the links for these files in our web client. After certain steps we can proof these files and play back the files which have been changed so that other users can made changes. It is possible to lock these files for this time span?

b) We fetch only the ids and metadata of the documents and provide a link to download it directly of Alfresco. Is this possible? This would be the small variant, but then it is task of the user to play back the changes, or? How can we implement a good mechanism to see that the user have made changes to the documents?

- another possibility would be to integrate the gui of alfresco into the user client. Is there a possiblity to use it as an iframe and control the user-interface by passing a certain url to alfresco? (Maybe we want to show documents which have a relationship with a certain customer…) 

Thanks in advance,
Jens Goldhammer
4 REPLIES 4

jpfi
Champ in-the-making
Champ in-the-making
Hi Jens,

there are two interfaces you could use. WebServices or WebScripts (REST), it depends on your detailed requirements.

If I'm right you'd like to use your own BPM/Worklfow engine and use alfresco only as content repository. There's also another option as using alfresco jBPM as workflow engine. Probably this would this would be the best approach to realize document centric workflows.

a) yes, that's possible: Checkout Document via WebService/WebScript. Downlaod Working Copy to your application. At the End of your worklfow upload edited WorkingCopy back to Alfresco and Checkin.

b) yes, that's possible: Checkout/Check document via WebService/WebScript during the workflow instance. The document can be accessed over CIFS or WebDAV.

Option b) is the better way using Alfresco as a ContentService inside of a service oriented environment.

c) yes, that is possible, too: Take a look at the WebScript API. I've published a prototype called opsoro (http://wiki.alfresco.com/wiki/Opsoro) which 100% uses WebScripts to get any data out of alfresco.
The IGoogleGadgets (http://wiki.alfresco.com/wiki/IGoogle_Gadget_Download)also using this technology.

Cheers,
Jan

jensgoldhammer
Champ in-the-making
Champ in-the-making
Hello Jan,

thanks for your detailed answer.
I have taken a short look at the web scripts api. It sounds really interesting.
jBPM was evaluated earlier by us and the bpel extension was too poor for our requirements at this time (half a year ago), so we have ignored it since then…Any updates?
Additionally, I see problems by integrating other ecm-systems if we use the built-in jbpm-engine. Then we have to implement the workflow outside of Alfresco again if we have to switch to another ecm-system…

Let us go more into detail with option b). Please image following scenario:
We have two or more business partners (don´t have to be two or more different companies, can be only departments which have not always a network-connection, so we cannot use a big repository and have to have a simple sync mechanism) which want to work process centric with integration of documents.
My Idea is to transfer the required documents between the business partners if the process on the one side has finished/is waiting for an incoming request/event and before starting/continue the process on the other side.
If we use the webservice-api of Alfresco, we can upload a document into Alfresco which is transferred from the other business partner. After storing it in Alfresco of the participated business partner we can provide the gui integration via web scripts to all users of this business partner. When all required steps on this business side are fullfilled, we can transfer the old and new objects to the next business partner.
Clear so far? Do you know any other possiblity which is more efficient?
How can we easily trace which documents are created and changed during the process steps?

Thanks for your answers,
Jens

jensgoldhammer
Champ in-the-making
Champ in-the-making
Additions:

Are there more ressources for the web scripts api?
I have so far:
http://wiki.alfresco.com/wiki/HTTP_API
http://wiki.alfresco.com/wiki/Web_Scripts_FAQ

Can anybody provide more links?
Thanks,
Jens