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 ?
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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.