cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Alfresco for this problem.

krishherein
Champ in-the-making
Champ in-the-making
Hi,
I am new to alfresco, i am learning how to use alfresco.
I have a case study that I have to develop using alfresco. I have read any guides but i am not getting exactly how to start with this.

The case study is like this.

I have to develop a web based application :

1.       A person visits a website opens a webpage containing (name, address, e-mail and one document ) and submits it.

2.       The data is saved (in a database or xml file), a task is created for approver to approve the data.

3.       After approval, the task is moved to another approver.

4.       After approval the file is moved to the approved folder.

I think I require a jsp page to take input from users.
I think I require alfresco SDK for this.

Kindly help me how to start it? How should i deploy the project into alfresco?
I am a complete fresher and I need more explanation.

Thanks,
8 REPLIES 8

norgan
Champ in-the-making
Champ in-the-making
Hi there,
it depends, what you really want to do on the form actions, but basically, all you need is already there in the basic getting started guide.

1) Setup an "upload/guest" space, where users are allowed to upload any content
2) Create a simple workflow "forwardReject"
3) create a simple workflow "finalaprove"

Done.

Norgan

krishherein
Champ in-the-making
Champ in-the-making
Hi,
My problem is that, the user will see a webpage on internet, and from there he has to  upload his details. His data should be saved in a database/xml file. And the image file which he uploads should be saved in a workspace.

Hope U get the problem.

norgan
Champ in-the-making
Champ in-the-making
To put it bluntly, you are talking about the basic usecase, why alfresco was built in the first place: People upload content and supply metadata with the content. Other people reuse it.
Since the system is quite flexible, there are dozens of different approaches, depending on what you want, need, know etc.

First question : should the uploader be anonymous or registered user. (A Selfregistration application has to be supplied by you, it is not available with Alfresco, AFAIK.)

Second queistion : How to do it with an anonymous user (registered user goes almost the same):smileysad:I guess you mean Version 4 or 5, but I list all options, I can think of in the moment, since maybe I oversimplify)

1) use the alfresco webclient (alfresco explorer) and a special "upload" account. There, you welcome the user with a custom webscript and explain to him, how to use the "add content" function to store stuff in an upload space. Then you internal people can process the data from there.

2) You use the alfresco webclient and a special webscript to explain or even handle the upload, placed on the "guest" page, write a webscript form with javascript and freemarker to upload the content

3) You use the alfresco-share gui and allow access to the upload user.  Rest the same as above

4) you write your own client and access the alfresco repository via the Java Content Repository API (JSR170) or transfer the data via import function with metadata in XML files. (May be REST, SOAP, FTP, Mail).  use the Alfresco Explorer to process the data internally.

5) You build a website with a webform to submit content with the Alfresco WCM and deploy the webpage to production and set up an import function from your internal alfresco to retrieve content from the production website repository (From the security point of view, that would be best. But maybe there are even more direct connections, allowing the deployed site to store content in another repository, but that has certain security implications.)

6) (Optional) You write a JSP or Webscript page and replace the "upload" dialog in the Alfresco explorer

I cant really take you further, that would rather be a Alfresco training *SCNR* There are several tutorials on writing webscripts, working with custom content modells etc. Basic introductions can also be found here: http://forums.alfresco.com/en/viewtopic.php?f=19&t=13426

Regards, Norgan

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi

I am also facing the same problem.I am also new to Webservices API.
My task is i have to upload a file from client machine to alfresco server machine.
In webservicesample program, we r creating file by program.
In my case, Client scan some docs and he'll upload that scanned docs on alfresco server.
Client application is a web application.
Through webservices we have to fatch that file and upload on alfresco server.
Kindly help me if you got any solution. Please keep in touch.

Regards
Nishant

unknown-user
Champ on-the-rise
Champ on-the-rise
krishherein

I am able to create Node on alfresco server using webservice example.
In webservicesample project, we can create node & content file and we can write content inside file through programming.
But in my case, i have to upload file from client machine (pdf file etc).

There are two case to put a file in alfresco as per my understanding –
1: read the file and create the same file on alfresco and write the content in that file that is very easy.
2: copy the same content file and put the same copy in alfresco server.  But i am unable to findout that API which wil help us to do the same thing. Through browse button we'll select some file and server side we have to get that file then we have to use some alfresco API(if it is in alfresco) or some other API to upload the file on alfresco

Plz share if you have any source docs or any alfresco ebooks.

regards
Nishant

archana_bonkanp
Champ in-the-making
Champ in-the-making
Hi all,

We are using alfreso.
there are some other applications also which alfresco and other also uses same login credentials.
I want to create a link from these alfresco to other applications.

Is it possible when we login to Alfresco and if we give credentials for alfresco and login can the other applications also can use same.

kayan
Champ in-the-making
Champ in-the-making
Hi Nishant,

Why dont you go for creating a webscript and create a RESTful URL to upload your file to server.  You can get more information and example over here.

http://wiki.alfresco.com/wiki/Web_Scripts
http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload

Hope this helps you.

Thanks
Kayan

maha
Champ in-the-making
Champ in-the-making
Hi,

I have created a form having fields like name,Street,City. Then,I created a web site using this form. Inside that website,I created web content by entering details name,street,city.Now it is stored as xml file in the content pane. Now how can i view this details in a form and fields of form should contain the details given.

Thanks