Hi
I use K2 Designer for Visual Studio.
I create an Activity with a Server event. I want to catch exception of this event. In the server event wizard i check "Enable Exception Rule" and click on View Code. I see a Workflow, right click and View Code. I add my code : set a datafield
Â
   public partial class Exception_36d6348add684e9f82f7b6ebbccea099 : IWorkflowContext<HostContext>
   {
       #region - K2 Context -
       private HostContext _K2;
       xEditorBrowsable(EditorBrowsableState.Never)]
       eDesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
       public HostContext K2
       {
           get { return _K2; }
           set { _K2 = value; }
       }
       #endregion
       #region - Properties_ExecuteCode -
       private void Properties_ExecuteCode(object sender, EventArgs e)
       {
           K2.ProcessInstance.DataFieldse"IsException"].Value = true;
           K2.AddToErrorLog = K2.Configuration.IsErrorLog;
           K2.AddToServerLog = K2.Configuration.IsServerLog;
       }
       #endregion
   }
Â
Â
But when i execute my workflow, exception is not caught. My workflow has error status.
So my question is how can i signify that i catch exception and treat it ?Â
Thank for your repliesÂ