Esempio n. 1
0
            public void execute(ProcessEngine engine, string scenarioName)
            {
                CaseService  caseService    = engine.CaseService;
                CaseInstance caseInstance   = caseService.createCaseInstanceByKey("case", scenarioName);
                string       caseInstanceId = caseInstance.Id;

                CaseExecutionQuery query = caseService.createCaseExecutionQuery().caseInstanceId(caseInstanceId);

                string firstHumanTaskId = query.activityId("PI_HumanTask_1").singleResult().Id;

                caseService.manuallyStartCaseExecution(firstHumanTaskId);
                caseService.completeCaseExecution(firstHumanTaskId);

                string secondHumanTaskId = query.activityId("PI_HumanTask_2").singleResult().Id;

                caseService.manuallyStartCaseExecution(secondHumanTaskId);
            }
Esempio n. 2
0
            public void execute(ProcessEngine engine, string scenarioName)
            {
                CaseService caseService = engine.CaseService;

                caseService.createCaseInstanceByKey("case", scenarioName);
            }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void setUp()
        {
            ProcessEngine processEngine = rule.ProcessEngine;

            caseService = processEngine.CaseService;
        }