예제 #1
0
        public WorkFlowStep CreateWorkFlowStep(string name, bool IsAutomatic)
        {
            WorkFlowStep w = new WorkFlowStep();

            w.Name = name;
            w.IsAuto = IsAutomatic;

            return w;
        }
예제 #2
0
        public DateTime ScheduleAutoStep(WorkFlowStep step)
        {
            switch (step.Name)
            {
                // insert autohandling here
                case("AuthorizeCreditCard"):
                    return DateTime.Now.Date.AddDays(1);

                default:
                    return DateTime.Now.AddMinutes(2);
            }
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the WorkFlowSteps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWorkFlowSteps(WorkFlowStep workFlowStep)
 {
     base.AddObject("WorkFlowSteps", workFlowStep);
 }
예제 #4
0
        public bool ProcessAutoStep(WorkFlowStep step)
        {
            switch (step.Name)
            {
                // insert autohandling here

                default:
                    return true;
            }
        }
 /// <summary>
 /// Create a new WorkFlowStep object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="workFlowId">Initial value of the WorkFlowId property.</param>
 /// <param name="isAuto">Initial value of the IsAuto property.</param>
 /// <param name="isComplete">Initial value of the IsComplete property.</param>
 public static WorkFlowStep CreateWorkFlowStep(global::System.Int32 id, global::System.String name, global::System.Int32 workFlowId, global::System.Boolean isAuto, global::System.Boolean isComplete)
 {
     WorkFlowStep workFlowStep = new WorkFlowStep();
     workFlowStep.Id = id;
     workFlowStep.Name = name;
     workFlowStep.WorkFlowId = workFlowId;
     workFlowStep.IsAuto = isAuto;
     workFlowStep.IsComplete = isComplete;
     return workFlowStep;
 }