K2 workflow with ASP.NET forms


Badge +1

 

Hi

 

I need to connect workfow asn asp.net forms issue i am facing from where i will get serial no to get instance detail 

 

Scenario is user will submit ASP.NET form request will be added in SharePoint list, email goes to manager now manager will click link and this will open asp.net form with information to approve and reject.

 

anyone can help me. 

 

 

 

Thanks


3 replies

Badge +6

Hi,


 


With regards to your query, I think you may find the following posts helpful:


 


http://community.k2.com/t5/K2-blackpearl/Getting-process-version-in-asp-net-form/td-p/25319


http://community.k2.com/t5/K2-blackpearl/Initiate-Process-From-ASP-NET-form/td-p/19211


 


Regards,

Badge +1

 

Not found the solution in the links provided.  when process start i need serial no so i can open action on another step.

Badge +8

There is no serial number until an activity has been assigned in your workflow.

 

Once the activity has been assigned, you can use the SourceCode.Workflow.Client.Connection.OpenWorklistItem() method to fetch all details about the worklist item as well as the process. 

 

Also note that you will probably have to use the SourceCode.Workflow.Client.Connection.ImpersonateUser() method to open/action the worklist item, otherwise you will get permission denied errros.

 

If you need to get the worklist item from code, you will likely have to use the SourceCode.Workflow.Management.WorkflowManagementServer.GetWorklistItems() method to fetch the global worklist and find the appropriate worklist item.

Reply