Hi Team;
I have two questions about service-context.xml as following picture.
And please refer the URL "https://ecmarchitect.com/alfresco-developer-series-tutorials/actions/tutorial/tutorial.html".
Thanks a lot!
That's how extension works and its a way inherit the parent action and also way to register your custom actions. You don't need to find that parent id, just need to remember and use it. Once you deploy your changes, Spring IOC container takes care of it.
At learning stage just remember to use the parent. However, Source code is available here if you really want to get more into it, you can explore: https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfres...
The second part is to enable or disable an action to either display under Folder Rules. By default they are enabled so if you are creating an action, and your intention is to keep the defaults then that particular property is not needed to be mentioned as you can see in first case, in second case action must be disabled so it doesn't show under Manage Rules and hence the property must be overridden to set the value to false.
you seems to be missing to read the instructions in the tutorial, it's already mentioned about the public action there. Quoting "Setting the publicAction
property to false hides these actions from the action dropdowns. There's no real reason to do that, in this case—it's just an example".
You can go through this doc to understand more on Folder Rules and Actions perform under folder rules: https://docs.alfresco.com/content-services/5.2/using/content/rules/#defining-rules-for-a-folder
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.