ys_chang
Novice

Delegate API?

Hello,


     i want to use apsx to manage the process.


     But can't find the api to do  delegate or redirect to another user ?


    Tks


   

0 Kudos
Reply
7 Replies
firefoxadm
Novice

Re: Delegate API?

I cant find delegate either but  Redirect we are using in our process it is in SourceCode.Workflow.Client


Look under WorkistItem Class

0 Kudos
Reply
ys_chang
Novice

Re: Delegate API?

redirect is in workclient api


but delegate isn't find it?


anybody can share it.


tks

0 Kudos
Reply
chrisg
Apprentice

Re: Delegate API?

I believe that delegate in the Workflow.Management API is hidden under the auspicious name of “SaveActionInstanceRights” give that a try. and please report back how that works.  Would be a good thing for everyone to know for sure.

0 Kudos
Reply
ys_chang
Novice

Re: Delegate API?

WorklistItem copy to new  ActionInstanceRight


SourceCode.Workflow.Management.WorkflowManagementServer.CreateActionInstanceRight(ActionInstanceRight)


can do like the Delegate fucation.

0 Kudos
Reply
Bob
Apprentice

Re: Delegate API?

You can check out an example of how to do this with the Workflow.Management API here:


 http://k2underground.com/blogs/fromthebench/archive/2008/07/24/how-to-delegate-undelegate-a-worklist...


 

0 Kudos
Reply
ys_chang
Novice

Re: Delegate API?

now i use the SourceCode.Workflow.Client to delegate


Dim dest As SourceCode.Workflow.Client.Destination = New SourceCode.Workflow.Client.Destination()
dest.DestinationType = SourceCode.Workflow.Client.DestinationType.User
dest.Name = ToUserId
WorklistItem.Delegate(dest)

0 Kudos
Reply
emalvass
Novice

Re: Delegate API?

I use the same code and it work perfectly. Remember to check your activity slot number because if you delegate another user and there's no slot free the task result in status allocated for the delegated user. To more info see tis post
http://www.k2underground.com/forums/thread/26487.aspx
0 Kudos
Reply