04-01-2022 11:07 PM
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!
04-02-2022 09:11 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.