Package org.jbpm.taskinstance

Examples of org.jbpm.taskinstance.CustomTaskInstance


  public long acquireTask() {

    List<CustomTaskInstance> tasklist = findPooledTaskListByCustomId("reviewers", "abc");
    Iterator taskIterator = tasklist.iterator();

    CustomTaskInstance taskInstance = null;
    long taskInstanceId = 0;
    while (taskIterator.hasNext()) {
      taskInstance = (CustomTaskInstance) taskIterator.next();
      taskInstanceId = taskInstance.getId();
      taskInstance.start();
      taskInstance.setActorId("tom");
      String customId = taskInstance.getCustomId();
      assertEquals("abc", customId);
      System.out.println(taskInstanceId);
    }
    return taskInstanceId;
  }
View Full Code Here


    return taskInstanceId;
  }

  public void completeTask(long taskInstanceId) {
    s = jbpmContext.getSession();
    CustomTaskInstance taskInstance = (CustomTaskInstance) s.load(
        CustomTaskInstance.class, new Long(taskInstanceId));

    taskInstance.end();

  }
View Full Code Here

TOP

Related Classes of org.jbpm.taskinstance.CustomTaskInstance

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.