Added method to find tasks based on workflow definition name (String instead of QName as in setProcessName)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28578 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Frederik Heremans
2011-06-24 15:22:20 +00:00
parent 855a129c80
commit 28161f0e2b
7 changed files with 99 additions and 4 deletions

View File

@@ -42,6 +42,7 @@ public class WorkflowTaskQuery
// process predicates
private String processId;
private QName processName;
private String workflowDefinitionName;
private Boolean active = Boolean.TRUE;
private Map<QName, Object> processCustomProps;
@@ -193,7 +194,10 @@ public class WorkflowTaskQuery
}
/**
* Filters on the {@link WorkflowDefinition} name.
* Filters on the {@link WorkflowDefinition} name. When using Activiti,
* the method {@link #setWorkflowDefinitionName(String)} should be used
* instead of this method.
*
* @param processName
*/
public void setProcessName(QName processName)
@@ -201,6 +205,23 @@ public class WorkflowTaskQuery
this.processName = processName;
}
/**
* @return
*/
public String getWorkflowDefinitionName()
{
return workflowDefinitionName;
}
/**
* Filters on the {@link WorkflowDefinition} name.
* @param workflowDefinitionName
*/
public void setWorkflowDefinitionName(String workflowDefinitionName)
{
this.workflowDefinitionName = workflowDefinitionName;
}
/**
* @return
*/