cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if workflow exist for a specific peice of content

karlovitz
Champ in-the-making
Champ in-the-making
I have been looking through both jBPM and the alfresco services to find out if there is a way to see if a workflow has been assigned to a specific piece of content.  For instance I may want to create an action that manipulates an object but not if there is a current workflow task associated with it.  Any help would be appreciated.
2 REPLIES 2

cleseach
Star Contributor
Star Contributor
Hi,

In WorkflowService, you will find getWorkflowsForContent(NodeRef packageItem, boolean active) method.
I think it is what your were looking for.

Regards,
Charles Le Seac'h

karlovitz
Champ in-the-making
Champ in-the-making
Thanks!  I have no idea how I missed that  :roll: