AnsweredAssumed Answered

Completed Worflows by user

Question asked by mangar on Apr 26, 2014
Latest reply on Apr 26, 2014 by kaynezhang
I am after a list of WorkflowItem by user. (Who started the workflow)  I can get them by


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();
      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.