01-27-2021 12:56 PM
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 ?
01-27-2021 01:45 PM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.