Examples of assignTask()


Examples of org.apache.agila.services.task.TaskService.assignTask()

    public boolean doStart(NodeContext ctx) {

        TaskService ts = ctx.getTaskService();

        ts.assignTask(ctx.getNextExecutionToken().getTokenID(), "Approve site visit",
                new UserID(1), new Date());

        return false;
    }
View Full Code Here

Examples of org.apache.agila.services.task.TaskService.assignTask()

    public boolean doStart(NodeContext ctx) {

        TaskService ts = ctx.getTaskService();
        NotificationService ns = ctx.getNotificationService();

        ts.assignTask(ctx.getNextExecutionToken().getTokenID(), "Leave Approval",
                new UserID(1), new Date());

        return false;
    }
View Full Code Here

Examples of org.apache.agila.services.task.TaskService.assignTask()

     */
    public boolean doStart(NodeContext ctx) {

        TaskService ts = ctx.getTaskService();

        ts.assignTask(ctx.getNextExecutionToken().getTokenID(), "Enter leave details",
                new UserID(1), new Date());

        return false;
    }

View Full Code Here

Examples of org.jbpm.api.TaskService.assignTask()

    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      taskService.assignTask(Long.toString(taskId), idRef);
    }
    finally{
      env.close();
    }
  }
View Full Code Here

Examples of org.jbpm.api.TaskService.assignTask()

    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      taskService.assignTask(Long.toString(taskId), null);
    }
    finally{
      env.close();
    }
  }
View Full Code Here

Examples of org.jbpm.api.TaskService.assignTask()

            if (nvl(userLogin,"").equals(nvl(task.getAssignee(),""))) {
                loger.severe("User: " + user.getLogin() + " has not reassigned task " + bpmTask.getInternalTaskId() + " for process: " + pi.getInternalId() + " as the user is the same: " + userLogin);
                return;
            }
            //this call should also take care of swimlanes
            ts.assignTask(bpmTask.getInternalTaskId(), userLogin);
            fillProcessAssignmentData(processEngine, pi, ctx);
            loger.info("Process.running:" + pi.getRunning());
            ctx.getProcessInstanceDAO().saveProcessInstance(pi);
            loger.severe("User: " + user.getLogin() + " has reassigned task " + bpmTask.getInternalTaskId() + " for process: " + pi.getInternalId() + " to user: " + userLogin);
View Full Code Here

Examples of org.jgroups.util.ReusableThread.assignTask()

        MyThread m2=new MyThread(2);

        LongRunningThread m4=new LongRunningThread(4);

        System.out.println("Assigning task");
        t.assignTask(m4);

        System.out.println("Sleeping 2 secs");
        Util.sleep(2000);

        System.out.println("stop()");
View Full Code Here

Examples of org.jgroups.util.ReusableThread.assignTask()

        System.out.println("stop() -- done");

        Util.printThreads();

        System.out.println("\nAssigning task 1");
        t.assignTask(m1);
        t.waitUntilDone()// passive wait
        System.out.println("done with task 1");

        Util.printThreads();
View Full Code Here

Examples of org.jgroups.util.ReusableThread.assignTask()

        System.out.println("done with task 1");

        Util.printThreads();

        System.out.println("\nAssigning task 2");
        t.assignTask(m2);
        t.waitUntilDone();
        System.out.println("done with task 2");

        System.out.println("Stopping thread");
        t.stop();
View Full Code Here

Examples of org.jgroups.util.ReusableThread.assignTask()

        t1=new LongRunningThread(1, 500);
        t2=new LongRunningThread(2, 300);

        t.start();

        t.assignTask(t1);
        t.waitUntilDone();
        assertTrue(t.done());
        t.assignTask(t2);
        t.waitUntilDone();
        assertTrue(t.done());
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.