Skip to main content


 

Symptoms


Retrieving Workflow Processes
I have an ASP.NET application and am referencing the K2 assemblies within my project.
I am trying to retrieve a list of workflow processes using the K2 API. Along with the list of processes I would like to also retrieve their associated DataFields.
The closest thing I found is the GetProcesses method off the SourceCode.Workflow.Client.Connection component, but I don't see where it is getting me the required DataFields.
 

Diagnoses


Suggest looking at using SmartObject Client API per following doc: http://help.k2.com/onlinehelp/k2blackpearl/DevRef/4.6.9/Content/Working_with_a_SmartObject.html

It's the SourceCode.Workflow.Management.WorkflowManagementServer which will expose a method (also) called GetProcesses, but the returning object also includes the DataFields that are associated with the Process. The problem I am currently running into now is I am trying to connect and my connection string is not being accepted with the credentials I provided.
 

Resolution

Most methods in the management API require the executing user account to hold Admin rights on K2 server and potentially Admin rights on the workflow being administered. You can give the account the required rights using K2 workspace or other K2 administration interfaces.
Please see:
http://help.k2.com/onlinehelp/k2blackpearl/DevRef/4.6.9/Content/AboutWorkflowManagementAPI.htm




 
Be the first to reply!

Reply