cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Behavior for onCreateNode Policy

kiranmaik
Champ in-the-making
Champ in-the-making

I am trying to create custom behavior for onCreateNode to validate a file signature .While I am creating the site  I  am facing issues i.e., its trying to validate the signature.So How to differentiate whether the created is site or a file ?

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

You should bind the behavior to your specific type (content type which will have signature) instead of general cm:content type.

Define a custom type for the documents you intend to use for signature validation if not created already to keep the behavior targetted for that specific type of documents. 

Additonally add checks to exclude any content that is not within site document libraray if you intend to keep all the documents in site doc lib only.

Have a look at this tutorial : https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)