Start a process from a Web Application???


Userlevel 3
Badge +16

Hi,

 

Is it possible to call a Workflow (K2 Studio) one without using a form?

 

I am testing to see if a web application can pass parameters to a K2 workflow and run it without using a form?

 

Basically i need to know if a process can be triggered without a user having to go to a form manually.

 

I need to pass parameters to the workflow in the same way the integration wizard works.

 

Possible?


3 replies

Badge +9

Hi

 

Check this link below

 

https://vijaydk2guy.wordpress.com/2017/11/11/k2-oob-rest-wcf-services/

Badge +15

If you are on K2 Five, you can make use of the new REST API to start your workflow.

Badge +9

Hi Sharpharp1,


 


Yes this will be possible, you can use the code from the following link and add this to the code behind of an ASPX page (on a button click):


https://help.k2.com/onlinehelp/k2blackpearl/DevRef/4.7/default.htm#Start_Instance_and_Get_Data_Fields.html%3FTocPath%3DRuntime%2520APIs%2520and%2520Services%7CWorkflow%7CWorkflow%2520Client%2520API%7CWorkflow%2520Client%2520API%2520Samples%7C_____2


 


-Jean


 

Reply