Beispiel #1
0
 public void CloseInvestigation(Guid InstanceId, InvestigationDoneEventArgs args)
 {
     if (null != InvestigationDone)
     {
         InvestigationDone(null, args);
     }
 }
Beispiel #2
0
        /// <summary>
        /// <param name="ComplainId"></param>
        /// <param name="InvDetails"></param>
        /// <param name="InvDate"></param>
        /// <returns>InvestigationTable</returns>
        /// </summary>
        public void CompleteInvestigaton(Guid ComplainId, DateTime InvDate, string InvDetails)
        {
            string curUser = Thread.CurrentPrincipal.Identity.Name;
            try
            {
                // Get the Workflow InstanceId
                Guid InstanceId = (Guid) IgrssAdapters.ComplainAdapter.GetWfIdByComplainId(ComplainId);

                // Initilize argument parameters
                InvestigationDoneEventArgs args = new InvestigationDoneEventArgs(InstanceId);
                args.InvestigationDate = InvDate;
                args.InvestigationDetails = InvDetails;

                // Raise the event with the arguments
                WorkflowMediator.ComplainServices.CloseInvestigation(InstanceId, args);
            }
            catch (Exception ex)
            {
                if(ExceptionPolicy.HandleException(ex, "DAL"))
                throw;
            }
        }