|
From: Daniele <d.t...@ic...> - 2003-02-26 13:35:22
|
Hello Maurizio, let's try to figure out your situation. You have activity A and-splitting to activity B and activity C like in: A -+-> B | +-> C When your instance runs, the first workitem (with id 0) is created for A. When the workitem is forwarded 2 new workitems will be created (their ids being 1 and 2). Like you said, you can assign workitems doing: wf.assignWorkitem(instance_id, X, user) where X is either 0,1 or 2. I guess the problem you have is dynamically figuring out the workitem names. The answer depends on when you want to have that information. Usually you need to call the assignWorkitem when the activity application is invoked (ie: when the user starts working on a workitem). At that time you can figure out the workitem name since it usually is passed as a parameter to the application itself (in openflow 0.7 this was accomplished automatically, while in openflow 1.0 you are free to set the parameters you prefer). What I mean is that probably you already know the workitem name in the very same place where you call the assignWorkitem API. If this is not you situation please explain where the assignWorkitem is called in your application. Also knowing the Zope and OpenFlow version would help me help you. Cheers, Daniele =) On Wednesday 26 February 2003 13:25, Maurizio Betti wrote: > Mhh, I explain myself not very well... > > I've just made as you wrote. Now, I have to assign the WORKITEM at run-time > by calling the "AssignWorkItem" API in this way: > > wf.assignWorkitem(instance_id, int(workitem_id)+1, user) > > For me this is simple if I have a workitem and another after again, but how > can I make this assigment if the SPLIT call two workitems (I have to assign > dinamically the first splitted workitem to an user, and the second to > another one)? > > regards, Maurizio Betti > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Openflow-dev mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openflow-dev -- Daniele Tarini - Research & Development - Icube S.r.l. Address: Via Ridolfi 15 - 56124 Pisa (PI), Italy E-mail: d.t...@ic... Web: http://www.icube.it Phone: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588 |