public ProcessEngineAwareStep(ProcessEngine processEngine) { this.processEngine = processEngine; runtimeService = processEngine.RuntimeService; taskService = processEngine.TaskService; repositoryService = processEngine.RepositoryService; }
//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() { engine = PerfTestProcessEngine.Instance; taskService = engine.TaskService; historyService = engine.HistoryService; runtimeService = engine.RuntimeService; repositoryService = engine.RepositoryService; }
public TestFixture(ProcessEngine processEngine) { this.processEngine = processEngine; repositoryService = processEngine.RepositoryService; runtimeService = processEngine.RuntimeService; managementService = processEngine.ManagementService; taskService = processEngine.TaskService; }
//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() { engine = processEngineRule.ProcessEngine; taskService = engine.TaskService; historyService = engine.HistoryService; runtimeService = engine.RuntimeService; repositoryService = engine.RepositoryService; }
public void execute(ProcessEngine engine, string scenarioName) { IdentityService identityService = engine.IdentityService; identityService.setAuthentication("mary01", null); TaskService taskService = engine.TaskService; string taskId = "myTaskForUserOperationLogDel"; Task task = taskService.newTask(taskId); taskService.saveTask(task); identityService.clearAuthentication(); }
public virtual void testCompleteProcessWithUserTask() { //given an already started process instance ProcessInstance oldInstance = rule.processInstance(); Assert.assertNotNull(oldInstance); //which waits on an user task TaskService taskService = rule.TaskService; Task userTask = taskService.createTaskQuery().processInstanceId(oldInstance.Id).singleResult(); Assert.assertNotNull(userTask); //when completing the user task taskService.complete(userTask.Id); //then there exists no more tasks //and the process instance is also completed Assert.assertEquals(0, rule.taskQuery().count()); rule.assertScenarioEnded(); }