Author |
Message
|
alex_do |
Posted: Mon Apr 26, 2004 3:47 pm Post subject: reassign Workflow run time objects |
|
|
Voyager
Joined: 17 Feb 2004 Posts: 85
|
How can we reassign Workflow run time objects from one user to another?
Thanks in advance |
|
Back to top |
|
 |
jmac |
Posted: Tue Apr 27, 2004 2:43 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Use the WorkItem::transfer() api _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
alex_do |
Posted: Tue Apr 27, 2004 8:17 am Post subject: |
|
|
Voyager
Joined: 17 Feb 2004 Posts: 85
|
Can anyone have any sample code similar to my issue,that will help me alot.
Thanks in advance |
|
Back to top |
|
 |
CHF |
Posted: Tue Apr 27, 2004 12:07 pm Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Quote: |
Workflow run time objects |
Do you mean Workitems? If yes, then you can simply transfer Workitems from one user to other using Thick Client or Webclient.
CHF  |
|
Back to top |
|
 |
alex_do |
Posted: Tue Apr 27, 2004 12:12 pm Post subject: |
|
|
Voyager
Joined: 17 Feb 2004 Posts: 85
|
Basically I want to delete the user ,before deleting him I have to transfer the Workitems to the Group Worklist of which this user is a part of. |
|
Back to top |
|
 |
CHF |
Posted: Tue Apr 27, 2004 12:24 pm Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
I am not sure if you want to use Transfer API to achieve this. But otherwise, like I said before, simply use WebClient or Thick Client to Transfer the workitems, and then delete that User from Runtime DB. To transfer Workitems you need authorization to do transfer.
CHF  |
|
Back to top |
|
 |
Ratan |
Posted: Tue Apr 27, 2004 12:27 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
CHF, your suggestion works if somebody is manually deleting users and has all the time in the world. _________________ -Ratan |
|
Back to top |
|
 |
alex_do |
Posted: Tue Apr 27, 2004 12:38 pm Post subject: |
|
|
Voyager
Joined: 17 Feb 2004 Posts: 85
|
Do anyone use the tranfer API before?If so,I would like to know how you implemented it.
Thanks alot |
|
Back to top |
|
 |
Ratan |
Posted: Tue Apr 27, 2004 12:40 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
look at the workitem API (Workflow Java API). It is pretty simple.
workitem.transfer("<UserID>") _________________ -Ratan |
|
Back to top |
|
 |
alex_do |
Posted: Tue Apr 27, 2004 12:45 pm Post subject: |
|
|
Voyager
Joined: 17 Feb 2004 Posts: 85
|
I thought we have to transfer the Workitems to the Group Worklist of which this user is a part of.Am I right? |
|
Back to top |
|
 |
CHF |
Posted: Tue Apr 27, 2004 12:47 pm Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Quote: |
has all the time in the world. |
I agree with you
CHF  |
|
Back to top |
|
 |
Ratan |
Posted: Tue Apr 27, 2004 1:53 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Alex,
Yes, You have to transfer the Workitem to the Group Worklist. You are probably using 'Virtual User' concept, so just transfer the Workitem to the Virtual user. _________________ -Ratan |
|
Back to top |
|
 |
|