Skip to main content

I am using K2 SmartForms for one our project. Form submits data to K2 Workflow. Workflow does not do any users interaction and runs only few seconds. I need to show result to the user right after workflow completion. So, scenario is:

1. User enter data to K2 SmartForm and click submit.

2. Workflow processing data and return result.

3. User getting pop-up notification window with result message.

 

Can I wait till workflow will be completed and get result from K2 SmartForm?

I assume the focus will remain on the form and it is not navigating away or anything?


If so, perhaps implementing the Timer control on this form that runs on an interval.


http://help.k2.com/onlinehelp/K2smartforms/UserGuide/4.7/default.htm#Timer_control.htm


On interval, call the 'Process Instance' Reporting SmartObject and pass it the 'Process Instance ID'.


If Status = Completed, display the result method.


 


There may be other implementations.  Additionally, this is just in theory and have not yet been tested.


 


 


Reply