Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public void testDefaultSequenceFlowOnTask()
        public virtual void testDefaultSequenceFlowOnTask()
        {
            string procId = runtimeService.startProcessInstanceByKey("defaultSeqFlow", CollectionUtil.singletonMap("input", 2)).Id;

            assertNotNull(runtimeService.createExecutionQuery().processInstanceId(procId).activityId("task2").singleResult());

            procId = runtimeService.startProcessInstanceByKey("defaultSeqFlow", CollectionUtil.singletonMap("input", 3)).Id;
            assertNotNull(runtimeService.createExecutionQuery().processInstanceId(procId).activityId("task3").singleResult());

            procId = runtimeService.startProcessInstanceByKey("defaultSeqFlow", CollectionUtil.singletonMap("input", 123)).Id;
            assertNotNull(runtimeService.createExecutionQuery().processInstanceId(procId).activityId("task1").singleResult());
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public void testSetCandidateGroupsThroughSpringService()
        public virtual void testSetCandidateGroupsThroughSpringService()
        {
            runtimeService.startProcessInstanceByKey("candidateUsersThroughSpringService", CollectionUtil.singletonMap("emp", "fozzie"));
            assertEquals(1, taskService.createTaskQuery().taskCandidateGroup("management").count());
            assertEquals(1, taskService.createTaskQuery().taskCandidateGroup("directors").count());
            assertEquals(1, taskService.createTaskQuery().taskCandidateGroup("accountancy").count());
            assertEquals(0, taskService.createTaskQuery().taskCandidateGroup("sales").count());
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public void testSetCandidateUsersThroughSpringService()
        public virtual void testSetCandidateUsersThroughSpringService()
        {
            runtimeService.startProcessInstanceByKey("candidateUsersThroughSpringService", CollectionUtil.singletonMap("emp", "fozzie"));
            assertEquals(1, taskService.createTaskQuery().taskCandidateUser("kermit").count());
            assertEquals(1, taskService.createTaskQuery().taskCandidateUser("fozzie").count());
            assertEquals(1, taskService.createTaskQuery().taskCandidateUser("gonzo").count());
            assertEquals(0, taskService.createTaskQuery().taskCandidateUser("mispiggy").count());
        }
Esempio n. 4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public void testSetAssigneeThroughSpringService()
        public virtual void testSetAssigneeThroughSpringService()
        {
            runtimeService.startProcessInstanceByKey("assigneeThroughSpringService", CollectionUtil.singletonMap("emp", "fozzie"));
            assertEquals(1, taskService.createTaskQuery().taskAssignee("Kermit The Frog").count());
        }