Expand my Community achievements bar.

Retrieving processVariableValues

Avatar

Level 1

Is there a way to retrieve processVariableValues for a task that is not associated with the currently logged in user?

I am doing a task search using a filter and retrieving all tasks (not specific to logged in user) as such:

TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager(myFactory);

TaskSearchFilter taskSearchFilter = new TaskSearchFilter();

taskSearchFilter.setIgnoreAllAcls(true);

List<TaskRow> result = queryManager.taskSearch(taskSearchFilter);

I am then looping through the results and trying to retrieve the processVariableValues for each task.

queryManager.getProcessVariableValues(myTask.getTaskId());

However, this only works for the currently logged in user (as defined in my connection properties when creating my ServiceClientFactory instance).  If the task is not associated to the logged in user I receive the following error:

"#UserName cannot load ProcessVariableValues for Task: #TaskNumber because they do not have permissions to claim this task."

My requirements dictate that I need to list all tasks for all users, including some information stored as a process variable.  Similar to the "Process List" in the "LiveCycle Process Management ES2" UI.

Is there a better way to achieve my needs?

1 Reply

Avatar

Former Community Member

I've exactly the same problem. Did u solved this? Or anybody has any advices? Thx a lot.