How can i get the task list of the current logged in user without the permission TaskReadAll.

All methods i tried call getTaskQueryExecutor which needs the permission TaskReadAll.

I think the User should be allowed to read it's own tasks.

asked 18.09.2014 at 14:12

HaraldWeber's gravatar image

HaraldWeber
(suspended)
accept rate: 33%


Hi, in the HTML WorkflowUI it done this way.

IQueryResult queryResult  = ivy.session.findWorkTasks(null, PropertyOrder.create(TaskProperty.ID, OrderDirection.DESCENDING), 
          0, 25, true, EnumSet.of(TaskState.SUSPENDED, TaskState.RESUMED, TaskState.PARKED));

List<ITask> tasks = queryResult.getResultList();
out.tasks = tasks;

may be this helps.

regards

Roland

link

answered 20.09.2014 at 10:23

roland's gravatar image

roland
(suspended)
accept rate: 41%

edited 22.09.2014 at 16:02

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958

Thanks. It works for me.

(22.09.2014 at 12:35) VU Hong Phat VU%20Hong%20Phat's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×68
×5

Asked: 18.09.2014 at 14:12

Seen: 2,210 times

Last updated: 22.09.2014 at 16:02