Package org.jbpm.task.event

Examples of org.jbpm.task.event.InternalTaskEventListener


      
       List<TaskSummary> subTasks = taskServiceSession.getSubTasksByParent(parentTask.getId(), "en-UK");

            if (subTasks.size() == 0) {
                // trigger event support
                service.addEventListener(new InternalTaskEventListener(taskServiceSession));

                service.getEventSupport().fireTaskCompleted( parentTask.getId(),
                                                                parentTask.getTaskData().getActualOwner().getId() );
            }
    }
View Full Code Here


    public void execute(TaskServiceSession taskServiceSession, TaskService service, Task task) {
       
        List<TaskSummary> subTasks = taskServiceSession.getSubTasksByParent(task.getId(), "en-UK");
            for(TaskSummary taskSummary : subTasks){
                Task subTask = taskServiceSession.getTask(taskSummary.getId());
                service.addEventListener(new InternalTaskEventListener(taskServiceSession));

                service.getEventSupport().fireTaskCompleted( subTask.getId(),
                                                                subTask.getTaskData().getActualOwner().getId() );
            }
    }
View Full Code Here

TOP

Related Classes of org.jbpm.task.event.InternalTaskEventListener

Copyright © 2018 www.massapicom. 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.