protected override void Execute(CodeActivityContext context) { try { Guid FlowInstranceID = context.WorkflowInstanceId; DebugStatus debug = new DebugStatus(); if (debug.status == 0) { string result = s.Get(context); if (result == "true") { //TODO Change the step. //BLL.Document.DocumentEndStep(FlowInstranceID, "1"); } else { //BLL.Document.DocumentEndStep(FlowInstranceID, "2"); } } } catch//(Exception e) { //执行出错 } }
protected override void Execute(NativeActivityContext context) { DebugStatus debug = new DebugStatus(); string bookmark = context.GetValue(bookmarkName); context.CreateBookmark(bookmark, new BookmarkCallback(bookmarkCallback)); if (debug.status == 0) { BLL.Document.DocumentStep(context.WorkflowInstanceId, Convert.ToInt32(this.StepID).ToString()); } }