Beispiel #1
0
        public void FuncReq_4()
        {
            Folder folder = FolderHelper.Instance.CreateFolder("Test");

            Document doc = DocumentHelper.Instance.CreateDocument("Test","TestUser");

            folder.Documents.Add(doc);

            AutomatedWorkFlowStep step = new AutomatedWorkFlowStep();

            step.Action = AutomatedActions.Complete;
            step.Scheduled = DateTime.Now;

            List<IWorkFlowStep> steps = new List<IWorkFlowStep>();
            steps.Add(step);

            //IWorkFlow workflow = WorkFlowHelper.CreateWorkFlow(steps);

            //IActivity activity = ActivityHelper.CreateActivity(workflow, new CustomerGroup());

            //ActivityHelper.SubmitActivityForProcessing(activity);

            //this would be initiated by another part of system
            AutoStepWorker worker = new AutoStepWorker();
            worker.ExecutedAutomatedTasks();

            //Assert.AreEqual(activity.Status, ActivityStatus.Approved);
        }
Beispiel #2
0
        public void FuncReq_3()
        {
            AutomatedWorkFlowStep step = new AutomatedWorkFlowStep();

            step.Action = AutomatedActions.Complete;
            step.Scheduled = DateTime.Now.Date.AddDays(1);//midnight

            List<IWorkFlowStep> steps = new List<IWorkFlowStep>();
            steps.Add(step);

            //IWorkFlow workflow = WorkFlowHelper.CreateWorkFlow(steps);
        }