I am trying to approximate the Submit all so that it can be executed directly from a portal and I am trying to figure out how the UI is able to generate the following message:
"The following items cannot be submitted as they are already part of a workflow."
How can I determine if a given item in a users sandbox is already part of a workflow?
I found that the class org.alfresco.web.bean.wcm.AVMWorkflowUtil contains the correct helper methods, but I have to use the Cut & Paste anti-pattern because it requires a FacesContext in order to work properly.