ALF-10084, ALF-10242. Fixed issues and added WorkflowService methods to get workflow instances without filtering by definition id.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30699 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-09-22 11:16:20 +00:00
parent 91eed305bd
commit b385e57f87
6 changed files with 299 additions and 105 deletions

View File

@@ -24,7 +24,6 @@ import java.util.List;
import java.util.Map;
import org.alfresco.service.Auditable;
import org.alfresco.service.PublicService;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
@@ -235,6 +234,32 @@ public interface WorkflowService
*/
@Auditable(parameters = {"workflowDefinitionId"})
public List<WorkflowInstance> getWorkflows(String workflowDefinitionId);
/**
* Gets all active workflow instances.
*
* @return the list of "in-flight" workflow instances
* @since4.0
*/
@Auditable
public List<WorkflowInstance> getActiveWorkflows();
/**
* Gets all completed workflow instances.
*
* @return the list of "in-flight" workflow instances
* @since 4.0
*/
@Auditable
public List<WorkflowInstance> getCompletedWorkflows();
/**
* Gets all workflow instances (both active and completed).
*
* @return the list of "in-flight" workflow instances
* @since 4.0
*/
public List<WorkflowInstance> getWorkflows();
/**
* Gets a specific workflow instances