cancel
Showing results for 
Search instead for 
Did you mean: 

Creating new content... without content.

theorbix
Confirmed Champ
Confirmed Champ
Is it possible - via API - to create a new document object and store the metadata values in the Alfresco Repository, but attach the file of the document only at a later time?

Let me explain…

The standard "Add Content" wizard of the Web Client allows to import new documents in the repository, and enter the associated metadata.

The wizard is designed in a way that uploading the file to be stored is the first step of the wizard, and it's a mandatory step. Makes sense.

But I'm designing a custom application (with a custom user interface, so I'm not concerned about limitations of Web Client) in which users should behave as follows:

1) Ask to create a new document
2) Enter a certain set of mandatory metadata (title, date, subject, destination, category)
3) The application will generate a unique document ID, based on the metadata entered by the user. A label printer will print the unique DocID and the document date on a label, in barcode format
4) The "document profile" information at this point is stored permanently in the repository
5) At a later time, documents are scanned, and imported in another batch application that automatically recognizes the DocID and automatically stores the file in the repository, associating it with the "empty profile record" created earlier during the day.

Is this design feasible?

Some other document management systems allow for two types of content: electronic documents (that have files associated) and paper documents (records without files associated), but do not allow to create a paper document and then transform it in an electronic document.

I'm wondering if Alfresco is more flexible from this point of view…
3 REPLIES 3

pmonks
Star Contributor
Star Contributor
Yes this is possible - simply create a node that contains metadata but no content.  This will appear as a zero byte file in the Web Cient / CIFS / FTP etc.

Cheers,
Peter

theorbix
Confirmed Champ
Confirmed Champ
OK, cool.
So it will be later possile to attach - via API - the content file?
Good.

pmonks
Star Contributor
Star Contributor
Yes - the logic would update the content whenever the electronic version arrives.

Cheers,
Peter