Hello,
I created a simple workflow based on rules and folders. Now I'm trying to create a "My tasks" smart folder that will show nodes with the app:simpleworkflow aspect. The problem is that listed files from that smart folder do not have "Approve" and "Reject" actions which makes it kind of useless. Is there any workaround for this problem?
I'm just trying to create an alternative for the "My tasks" dashlet.
Solved! Go to Solution.
Hi @upforsin
Smart folders are a bit like virtual folders - they are based on a search criteria or similar (for example, file type). So files don't really reside under a smart folder, hence they can't be moved or added to a smart folder. For example, if I created a smart folder based on file type .pdf, it wouldn't make sense to allow me to add .jpg files to that folder. Hence it also doesn't make sense to allow me to remove .pdf files from that folder either - otherwise the whole logic of the smart folder would be broken.
Let's try another example. Imagine you had a document type called "contract" and a smart folder that showed all "contract" documents. To remove a certain contract document from that smart folder, you would have to change the document type to something other than "contract". In order to remove or add files, you have to do that in the physical folder - so, if you want to add a new "contract" document, you would have to add the contract document to a physical folder and it would then be visible in the "contracts" smart folder because of it's document type.
HTH
Smart folders has limited list of actions visible. It is not like general folders.
See the documentation here: https://docs.alfresco.com/content-services/6.1/config/smart-folders/sf-faq/
Thank you for your reply @abhinavmishra14, that is exactly what I am talking about.
The question is if there is any workaround for that. Or, is there any other idea that would provide the user access to view all "tasks" in a single place?
EDIT. I've added the evaluator, and the actions display correctly but when I click the "Accept" action, the popup message says "Workflow action could not be completed." (as expected because as far as I understand files from smart folders can not be moved which is very sad)
Hi @upforsin
Smart folders are a bit like virtual folders - they are based on a search criteria or similar (for example, file type). So files don't really reside under a smart folder, hence they can't be moved or added to a smart folder. For example, if I created a smart folder based on file type .pdf, it wouldn't make sense to allow me to add .jpg files to that folder. Hence it also doesn't make sense to allow me to remove .pdf files from that folder either - otherwise the whole logic of the smart folder would be broken.
Let's try another example. Imagine you had a document type called "contract" and a smart folder that showed all "contract" documents. To remove a certain contract document from that smart folder, you would have to change the document type to something other than "contract". In order to remove or add files, you have to do that in the physical folder - so, if you want to add a new "contract" document, you would have to add the contract document to a physical folder and it would then be visible in the "contracts" smart folder because of it's document type.
HTH
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.