Re: Re: Re: Activity and process finish with custom assignment manager
Sasa Bojanic <[email protected]> Sun, 27 Sep 2009 15:06:02 +0200
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1254056922-18930-6328 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, actually, being user with username "admin" doesn't mean anything for runTS (ManualTest example). It means for Swing client application depending on configuration...when you specify the admin group, all the users belonging to this group are able to see other users' worklists. Even in that case, it is not recommended that user admin acts on a behalf of another user in a sense to accept their workitems... Anyway, being admin means nothing to the core engine but it can mean something to the applications built on top of the engine. runTS(ManualTest) logic is to instantiate processes and get the worklist of user admin...so it will not see or execute workitems from other users' worklists. The implementation of the logic to be able to accept/complete activities of the user if you belong to the same group is also out of the scope of the core engine. In some implementations we assign the activities to the groups. From the core engines' point of view, a group is just another user/resource in the system (and thus there is a worklist maintained by the shark for this group resource). From the applications' point of view, when real user logs in, the worklist for the user is retrieved by querying shark for the worklists of all the groups this user belongs to, plus for the worklist of himself. When user accepts an activity, application calls shark's API to reassign activity from the group to this user, when it rejects we reassign from this user to the group... Greetings, Sasa. DS wrote: > Hi, thanks for the quick response. > > Yes, that makes sense. One thing is that I am still logged in as admin so I'd > think I should be acting on behalf of any user, which seems not to be the case. > Appart from ability to create process instances, if even that, what can admin > do that a regular user doesn't? > > And another only a user may accept and complete an action whereas I'd really > love to have an ability to be able to accomplish the same thing being a part of > user group that activity performer is assiciated with. > > Thank you, > > DS > ------------=_1254056922-18930-6328 Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt" Content-Disposition: inline; filename="message-footer.txt" Content-Transfer-Encoding: quoted-printable -- You receive this message as a subscriber of the [email protected] mailing lis= t. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=3Dhelp OW2 mailing lists service home page: http://www.ow2.org/wws ------------=_1254056922-18930-6328--