cancel
Showing results for 
Search instead for 
Did you mean: 

Create custom doc type via CIFS

cerberos
Champ in-the-making
Champ in-the-making
Hi,
there's a way to create a node of a custom type via CIFS or FTP? When I create files via CIFS or FTP, Alfresco always create a cm:content doc. Now I want to deposit pdf with custom metadata, create a custom doc type and assign values with a metadata extractor. Is this possible?

Thank you
7 REPLIES 7

mrogers
Star Contributor
Star Contributor
You can fire a rule on nodes being created in your space that specializes the type according to your busness rules.

Or you could use the PDF metadata extractor for example to extract a custom field/property from a PDF document.   And define that custom property in an Aspect.     Your PDF documents will then have your custom aspect on them which you can use to drive the display of property sheets etc.

cerberos
Champ in-the-making
Champ in-the-making
I've seen that custom fields defined in custom aspect, when extracted, add the aspect itself to the node. This is a good thing, but I want also to create a node of the custom type. What kind of rule must i use to create the correct node? Must I code a custom java Action, or there's something that can do the job?

Thank you

mrogers
Star Contributor
Star Contributor
What logic would your rule need to do?

If its a simple "all PDFs in this space become someco:whatever" then that's simply configuration of a rule.

If its more complex then you may need to resort to either Alfresco script or Java.

cerberos
Champ in-the-making
Champ in-the-making
The basic rule can be:
"All pdfs added in this space must be foo:bar type, with fooSmiley Tonguerop1 and fooSmiley Tonguerop2 extracted". Can be this applied without custom coding?

Another, more flexible rule, can be:
"All documents whose properties fooSmiley Tonguerop1 and fooSmiley Tonguerop2 can be extracted, must became a foo:bar document type". I think that here I need a bit of coding… no? :wink:

Thank you for your help.

cerberos
Champ in-the-making
Champ in-the-making
Hi, I'm looking around alfresco interface, and I found the "Specialise Type" default action. Maybe it does the job?

Thank you

efestione
Champ in-the-making
Champ in-the-making
The basic rule can be:
"All pdfs added in this space must be foo:bar type, with fooSmiley Tonguerop1 and fooSmiley Tonguerop2 extracted". Can be this applied without custom coding?

Hi cerberos,
yes you can obtain this behaviour with the "Specialise Type" and "extract metadata" actions, but before you have to adjust the configuration of web client.
Please see here:
http://forums.alfresco.com/en/viewtopic.php?f=12&t=2527

My problem is that this works when I create the content via web client, but it doesn't when I create content via CIFS….  :cry:
How can I check if the rule is fired? which log4j.properties entries do I have to configure?

Thanks
Ale

efestione
Champ in-the-making
Champ in-the-making