pathogen
Novice

Retrieve process definitions for current user

Hi all


I need to retrieve the process definitions that are accessible to the current user from the K2 Server.  It looks to me like I need to call one of the "GetProcesses"-type of methods on SourceCode.Workflow.Management.WorkflowManagementServer but I don't know the following



  1. Do I need to connect using an admin user when going through the management API? 

  2. In the management API there is no ImpersonateUser() method like the client API so, if I do connect as an admin, would I then retrieve all process definitions accessible to the admin user and not those accessible to the logged on user?

  3. Is it possible to retrieve process definitions through the client API?


  4. Can SourceCode.Workflow.Management.Criteria.ProcessCriteriaFilter be used to filter out records not accessible to a particular user if I have connected through the management API using an admin user?


 Thanks


James

0 Kudos
Reply
2 Replies
pathogen
Novice

Re: Retrieve process definitions for current user

Is WorkflowManagementServer.GetUserParticipatingProcesses() the method that I need here?
0 Kudos
Reply
ys_chang
Novice

Re: Retrieve process definitions for current user

Why k2's document or help can't write more clear to understand ?


Some componets like telerik or devExpress their document is very good.


 














Visual Basic (Declaration) 

Public Function GetUserPermissions( _
   ByVal userName As String _
) As Permissions














C# 

public Permissions GetUserPermissions( 
   string userName
)



0 Kudos
Reply