Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the 
discussion

"find User tasks"

To view the discussion, visit: http://community.jboss.org/message/541264#541264

--------------------------------------------------------------
Hi,

I'm trying to find some tasks assign to a user, but no success !

I have done a mock identity service to produce test data

My test process :




My test :

RepositoryService repositoryService = 
processEngine.getRepositoryService();ProcessDefinition testProcess = 
repositoryService.createProcessDefinitionQuery()                
.processDefinitionKey("test").uniqueResult();ExecutionService executionService 
= processEngine.getExecutionService();ProcessInstance instance = 
executionService.startProcessInstanceByKey("test");logger.info("instance state 
: {}", instance.getState());Set activities = 
instance.findActiveActivityNames();for (String activity : activities) {        
logger.info("Activity : {}", activity);}
TaskService taskService = processEngine.getTaskService();
tasks = taskService.findPersonalTasks("john");assertFalse("No tasks for John 
!", tasks.isEmpty());


No tasks for john !
Expected 1 because of the  candidate-users="john" am I wrong ?

How to make it works ?

Thanks

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/541264#541264]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to