|Re: unexpected work list query result [message #1630328 is a reply to message #1627805]
||Mon, 23 February 2015 05:59
| Hideo Sashida
Registered: September 2012
User "motu" have access to worklist of "motu" user. Assuming "motu" is a member of "Administrator" role, "motu" user has its private user worklist (worklist 1) and role/organization shared worklist for "Administrator" role(worklist 2) for its worklists.
When a manual activity's participant is set to "Administrator" role in your model, suspended activity instances(AIs) are located in worklist 2. For those AIs, you can select them by using WorklistQuery that is constructed by calling WorklistQuery.findCompleteWorklist().
When "motu" user activates the activity instance in a manual activity, such AIs, which are in Application state, are not listed in worklist 2 any more. They are listed in worklist 1 instead. In such case, you can select them by usgin WorklistQuery that is constructured by calling WorklistQuery.findPrivateWorklist().
Does this answer to your question?
Powered by FUDForum
. Page generated in 0.02609 seconds