ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google

Mail Archive Home | jawe List | January 2005 Index

<--  Date Index     <--  Thread Index    

AW: [shark] Dynamic User Mapping


I tried to set the activity performer in JaWE, but this field isn't
editable, it's only changeable with an external Editor and from that
time this Field is editable!
Is something wrong in my configuration!

Regards, Manfred

-----Ursprüngliche Nachricht-----
Von: Sasa Bojanic [mailto:sasaboy@xxxxxxxxxxxxx]
Gesendet: Mittwoch, 19. Jänner 2005 23:57
An: shark@xxxxxxxxxxxxx
Betreff: Re: [shark] Dynamic User Mapping


you can do it in several ways:

   - setup shark to use XPDLStraightParticipantMapping assignment manager
   - define the activity performers to depend on the value of some
variable, that could be entered by the one who starts the process, or
calculated by some tool activity. I.e. you can write expression for
activity performer like:

java.lang.String p="shark";
if(processStarter.equals("manfred")) {
}else if (processStarter.equals("sasa")) {

(in JaWE, show the always existing "Arbitrary expression" participant, put
the activity there, and copy the code above in the performer field. Of
course, script type defined for the package should be text/java)

2) the most flexible implementation would be to define your own assignment
manager, that would determine the performer on some activity based on
information from both, the process variables, XPDL, and maybe from some
data in your custom user DB.


> Hi,
> I want to assign one or more Activities to a specific real Shark User
> and I already know that I can do this with the
> ParticipantMappingAdministration. But this is not useful in our case,
> because this mapping is static for defined Process, which means for all
> Clients, which has started that Process, this specific Assignment will
> occur. But I want to switch to some Users depending on the Client who
> has started the Process. Everything clear up to now? If yes   ;-) , how
> can I code this? What's necessary inside XPDL-Declaration?
> Best regards Manfred

<--  Date Index     <--  Thread Index    

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.