|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Activity and process finish with custom assignment managerHello,
I have a problem with automatic modes. I have added my own assignment manager (actually just getAssignments part for I don't quite understand how to use UserGroupManager, which is unfortunte because it could have been extremely helpful). Once I added it, Shark started behaving differently - none of activities that have automatic start and finish modes are actually completed automatically. I was under implression that regardless the assignment manager, it should work as set however there is something that I don't see. I can't find much in the docs either. As a matter of fact, I have tried examples with runTS.bat on my Windows machine. If I don't have my assignment manager set, everything works as expected - activities are created and finished by the engine. However if I uncomment the line in the config and use XPDLStraightParticipantMappingAssignmentManager, no more automatic finishes - the example stops after the first activity is created. Could someone please explain what is going? DS -- You receive this message as a subscriber of the shark@... mailing list. To unsubscribe: mailto:shark-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Activity and process finish with custom assignment managerHi,
I assume these are not automatic activities which are not being executed but the manual ones, otherwise we have a big problem :-). If you are executing runTS to test your new AssignmentManager, be aware that it creates and executes a processes for user "admin". In the case of Standard or XPDLStraight assignment manager, when you create processes as admin user and when there are no participant mappings when Standard assignment manager is used, all the assignments will go to this "admin" user, and thus at the end of the test all the processes will be finished. If your assignment manager generates assignments for a user(s) different than "admin" (at least for the manual activities at a beginning of the process), the processes will never get finished since admin will not get any assignments in his worklist. Greetings, Sasa. DS wrote: > Hello, > > I have a problem with automatic modes. I have added my own assignment manager > (actually just getAssignments part for I don't quite understand how to use > UserGroupManager, which is unfortunte because it could have been extremely > helpful). Once I added it, Shark started behaving differently - none of > activities that have automatic start and finish modes are actually completed > automatically. I was under implression that regardless the assignment manager, > it should work as set however there is something that I don't see. I can't find > much in the docs either. > > As a matter of fact, I have tried examples with runTS.bat on my Windows > machine. If I don't have my assignment manager set, everything works as > expected - activities are created and finished by the engine. However if I > uncomment the line in the config and use > XPDLStraightParticipantMappingAssignmentManager, no more automatic finishes - > the example stops after the first activity is created. > > Could someone please explain what is going? > > DS > -- You receive this message as a subscriber of the shark@... mailing list. To unsubscribe: mailto:shark-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: Activity and process finish with custom assignment managerHi, 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 -- You receive this message as a subscriber of the shark@... mailing list. To unsubscribe: mailto:shark-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: Re: Activity and process finish with custom assignment managerHi,
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 > -- You receive this message as a subscriber of the shark@... mailing list. To unsubscribe: mailto:shark-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
| Free embeddable forum powered by Nabble | Forum Help |