Is it possible to create a task which has to be completed by every user of a specific role, which should be determined dynamically? I.e. if I have three users which own a role, all three users have to complete this task. The more convinient way would be, if all three get an own task in ther "Personal Task List".

Thanks in advance for any answers.

asked 07.01.2016 at 15:37

rhorber's gravatar image

rhorber
36337
accept rate: 0%


You can query the users of a role with the following public API:

ivy.wf.getSecurityContext().findRole("Everybody").getAllUsers();

Then you can draw a process that loops over a task switch and creates new user tasks until all users have one. The second task is a system task which continuous the execution until the list of users is empty.

alt text

link

answered 08.01.2016 at 15:01

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
8.2k11650
accept rate: 68%

edited 08.01.2016 at 15:01

Thank you for your answer, it works. But I had to save the names in a separate list and work with that list. The list with the users contains null after the task switch gateway.

(11.01.2016 at 14:58) rhorber rhorber's gravatar image

you are right, a list of ISession is not serializable. So you must store the name of the users as this is only a simple String serialization.

(13.01.2016 at 10:49) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
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:

×63
×26
×12

Asked: 07.01.2016 at 15:37

Seen: 1,357 times

Last updated: 13.01.2016 at 10:49