Retrieve process definitions for current user

  • 16 February 2009
  • 2 replies
  • 0 views

Badge +1

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


2 replies

Badge +1
Is WorkflowManagementServer.GetUserParticipatingProcesses() the method that I need here?
Badge +5

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
)



Reply