public void CallHostMethod(StateBehaveArgs Args) { if (CallBackMethodWorkflow != null) { CallBackMethodWorkflow(null, Args); } }
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); } }
public void OnGoNext(StateBehaveArgs Args) { if (GoNext != null) { GoNext(null, Args); } }
/// <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)); }
protected override void OnInvoked(System.EventArgs e) { this.E = ((StateBehaveArgs)(e)); }