Skip to main content

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


   

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


Look under WorkistItem Class


redirect is in workclient api


but delegate isn't find it?


anybody can share it.


tks


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.


WorklistItem copy to new  ActionInstanceRight


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


can do like the Delegate fucation.


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-worklistitem-via-api.aspx


 


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)


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

Reply