This content has been marked as final.
Show 4 replies
-
1. Re: Very Simple Swimlane......help!
salaboy21 Apr 23, 2008 8:36 AM (in response to francis1970)I think you must think the problem with this thought in mind...
remember that you have to things called task (Task-Node and Task)
Other thing that you must remember is the TaskMgmtInstance class..
that lets you Manage all your task instances. So
i think the following lines of code makes you clear what i'm talking about:TaskMgmtInstance taskMgmtInstance = processInstance.getTaskMgmtInstance(); String actorId=taskMgmtInstance.getSwimlaneInstance("boss").getActorId();
-
2. Re: Very Simple Swimlane......help!
francis1970 Apr 23, 2008 9:17 AM (in response to francis1970)Hi thanks a lot for your reply. I made confusion between Task instance and Task management Instance
Map map = arg1.getTaskMgmtInstance().getSwimlaneInstances(); Set set = map.keySet(); Iterator iter = set.iterator(); while (iter.hasNext()) { String key = (String)iter.next(); SwimlaneInstance swim = (SwimlaneInstance)map.get(key); // This returns "buyer" or "seller" depending on the // Task System.out.println("name " +swim.getName()); }
Now I know in which swim lane I am swimming :-)
Thanks!
Francesco -
3. Re: Very Simple Swimlane......help!
salaboy21 Apr 23, 2008 9:22 AM (in response to francis1970)you're welcome!!!
Keep coding! -
4. Re: Very Simple Swimlane......help!
kukeltje Apr 23, 2008 4:29 PM (in response to francis1970)you could also put the assignmenthandler IN the swimlane... much cleaner and no duplication, just pointing to the swimlane in a task