public static void CompleteWorkflowTask(string transactionId) { ECXWF.ECXEngine eng = new WarehouseApplication.ECXWF.ECXEngine(); ECXWF.CMessage msg = (ECXWF.CMessage)HttpContext.Current.Session["msg"]; msg.IsCompleted = true; eng.Response(transactionId, msg); }
public static void WorkFlowManager(string TransactionNo) { if (String.IsNullOrEmpty(TransactionNo) == true) { throw new InvalidTransactionNumber("Invalid Tracking Number"); } try { if (HttpContext.Current.Session["msg"] != null) { ECXWF.ECXEngine eng = new WarehouseApplication.ECXWF.ECXEngine(); ECXWF.CMessage mess = (ECXWF.CMessage)HttpContext.Current.Session["msg"]; mess.IsCompleted = true; eng.Response(TransactionNo.Trim(), mess); } else { throw new Exception("Session Expired"); } } catch (Exception ex) { throw new Exception("Work Flow Exception.", ex); } }
private void WFM(string stTran) { string TransactionNo = ""; if (stTran == "") { TransactionNo = Request.QueryString["TranNo"]; } else { TransactionNo = stTran; } ECXWF.ECXEngine eng = new WarehouseApplication.ECXWF.ECXEngine(); ECXWF.CMessage[] mess = eng.Request(TransactionNo, UserBLL.GetCurrentUser(), new string[] { "" }); mess[0].IsCompleted = true; eng.Response(TransactionNo, mess[0]); //Response.Redirect("~/PageSwicther.aspx?TranNo=" + TransactionNo); }