Hi
I had an issue in getting the current activity details for a process; so i went to the following link
http://forum.k2workflow.com/forums/p/12471/36524.aspxÂ
the problem is that the info for the activity is delayed for some time and after applying the Smart object solution and the Direct sql call to the k2serverlog database the problem persists.
what shall i do in order to FLUSH the changes of the process instance after executing the action.execute method.
--------------
 Connection conn = new Connection();
      //Connect to Workflow Server
      conn.Open(connSetup);
      // Get the WorklistItem object
      string sn = TextBox1.Text;
      // get the worklist item, and process instance (for data fields)
      WorklistItem wi = conn.OpenWorklistItem(sn);
      ProcessInstance pi = wi.ProcessInstance;
      // Set the Process Data Fields
Â
      // execute the action
      wi.Actions DropDownList1.Text].Execute();
//WHAT SHALL I DO TO MAKE SURE THAT THE DATA IS COMMITTED TO THE DATABASE
-------------