I am after a list of WorkflowItem by user. (Who started the workflow) I can get them by
workflowService.getCompletedWorkflws();
and then loop through for the getItiator(), but that seems like that's wrong for very large amount of workflows.So I try a workflow query like this:
Map<QName,Object> map = new HashMap<QName,Object>();
map.put(QName.createQName(AlfrescoModel.BPM_NAMESPACE,"creator"), userId);
WorkflowInstanceQuery query = new WorkflowInstanceQuery();
query.setActive(false);
query.setCustomProps(map);
List<WorkflowInstance> workflowList = workflowService.getWorkflows(query);
this is always returning 0 workflows.WHat am I doing wrong? Is there a good tutorial on the workflow query? The API documentation is NO help at all.