Hello,

What does mean isInvolved for a SecurityMember in a TaskQuery? If I want to get all the tasks that I can start, is "canWorkOn" enough?

Thanks a lot in advance!

Example:

ISecurityMember member = Ivy.wf().getSecurityContext().findUser(username);

TaskQuery taskUserQuery = TaskQuery.create();
taskUserQuery.where().isInvolved(member);
taskUserQuery.where().or().canWorkOn(member);

asked 29.05.2015 at 15:25

Emmanuel's gravatar image

Emmanuel
175131619
accept rate: 66%


I think canWorkOn(member) is enough for this use-case. It returns all tasks, for which the user has permission, and are in state SUSPENDED, PARKED, RESUMED, or CREATED.

isInvolved(member) will return the same tasks as canWorkOn(..) but also tasks for which the user has permission, but are in a not resumable state (READY_FOR_JOIN, JOINING, JOIN_FAILED, DONE or DESTROYED)

link

answered 29.05.2015 at 15:50

Dominik%20Regli's gravatar image

Dominik Regli ♦
9013518
accept rate: 85%

Your answer
toggle preview

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:

×10

Asked: 29.05.2015 at 15:25

Seen: 681 times

Last updated: 29.05.2015 at 15:50