111112113114115116117118119120121
/** * 我的待办任务 */ public String myTodoList(){ if( task == null ) task = new MyTask(); task.setAssignee( getLoginUser() ); //登录用户 taskPage = workflowManager.listTask(task,taskPage); return SUCCESS;
124125126127128129130131132133134
/** * 我的待办任务数 */ public String myTodoCount(){ if( task == null ) task = new MyTask(); task.setAssignee( getLoginUser() ); //登录用户 if( taskPage == null ) taskPage = new ListPage<Task>(); taskPage.setSize(0);
145146147148149150151152153154155
/** * 我的待签任务 */ public String myAssignList(){ if( task == null ) task = new MyTask(); task.setCandidateUser( getLoginUser() ); //当前登录用户 taskPage = workflowManager.listTask(task,taskPage); return SUCCESS;
2021222324252627282930
MyThreadFactory myFactory=new MyThreadFactory("MyThreadFactory"); /* * Crate a Task */ MyTask task=new MyTask(); /* * Create a Thread using the Factory to execute the Task */ Thread thread=myFactory.newThread(task);
3132333435363738394041
ExecutorService executor=Executors.newCachedThreadPool(threadFactory); /* * Create a new Task object */ MyTask task=new MyTask(); /* * Submit the task */ executor.submit(task);