예제 #1
0
 public void CallHostMethod(StateBehaveArgs Args)
 {
     if (CallBackMethodWorkflow != null)
     {
         CallBackMethodWorkflow(null, Args);
     }
 }
예제 #2
0
        public bool InterviewSucceed(StateBehaveArgs item)
        {
            ArrayList arr   = item.Parameters[0] as ArrayList;
            long      score = 0;

            for (int i = 0; i < arr.Count; i++)
            {
                try
                {
                    score += !string.IsNullOrEmpty(arr[i].ToString()) ? Convert.ToInt64(arr[i]) : 0;
                }
                catch (Exception)
                {
                }
            }

            if (score > 100)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #3
0
 public void OnGoNext(StateBehaveArgs Args)
 {
     if (GoNext != null)
     {
         GoNext(null, Args);
     }
 }
예제 #4
0
        /// <summary>
        /// GoToNext State by Condition
        /// </summary>
        /// <param name="Parameter"></param>
        /// <returns></returns>
        public string GoNext(string NextState)
        {
            // prepare external data exchange arguments
            OrderedDictionary parameters = new OrderedDictionary();

            parameters.Add("NextState", NextState);
            StateBehaveArgs args = new StateBehaveArgs(this.CurrentWorkflowInstanceId, parameters);

            // make local service call into Navigation Workflow
            _WorkflowNavigationServices.OnGoNext(args);

            // execute the workflow on the current thread and return the page to go to
            return(GetPageToGoTo(args.InstanceId));
        }
예제 #5
0
 protected override void OnInvoked(System.EventArgs e)
 {
     this.E = ((StateBehaveArgs)(e));
 }