Package org.kie.api.task

Examples of org.kie.api.task.TaskService.complete()


        assertEquals(1, tasks.size());
       
        taskId = tasks.get(0).getId();
       
        taskService.start(taskId, "reviewer");
        taskService.complete(taskId, "reviewer", null);
       
        // check the state of process instance
        processInstance = ksession.getProcessInstance(processInstance.getId());
        assertNull(processInstance);
       
View Full Code Here


        assertEquals(1, tasks.size());
       
        long taskId = tasks.get(0).getId();
       
        taskService.start(taskId, "salaboy");
        taskService.complete(taskId, "salaboy", null);
       
        manager.disposeRuntimeEngine(engine);
       
        engine = manager.getRuntimeEngine(ProcessInstanceIdContext.get(processInstance.getId()));
        assertNotNull(engine);
View Full Code Here

        assertEquals(1, tasks.size());
       
        taskId = tasks.get(0).getId();
       
        taskService.start(taskId, "translator");
        taskService.complete(taskId, "translator", null);
       
        manager.disposeRuntimeEngine(engine);
       
        engine = manager.getRuntimeEngine(ProcessInstanceIdContext.get(processInstance.getId()));
        assertNotNull(engine);
View Full Code Here

        assertEquals(1, tasks.size());
       
        taskId = tasks.get(0).getId();
       
        taskService.start(taskId, "reviewer");
        taskService.complete(taskId, "reviewer", null);
       
        // check the state of process instance
        processInstance = ksession.getProcessInstance(processInstance.getId());
        assertNull(processInstance);
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.