Package org.jbpm.taskmgmt.exe

Examples of org.jbpm.taskmgmt.exe.TaskInstance.end()


    jbpmContext.save(processInstance);
   
    newTransaction();
   
    TaskInstance evaluateTaskInstance = (TaskInstance) jbpmContext.getTaskMgmtSession().findTaskInstances("ernie").get(0);
    evaluateTaskInstance.end("More info needed");
    jbpmContext.save(evaluateTaskInstance);

    newTransaction();
   
    List cookieMonsterTasks = jbpmContext.getTaskMgmtSession().findTaskInstances("cookie monster");
View Full Code Here


    return taskInstanceId;
  }

  public void completeTask(long taskInstanceId) {
    TaskInstance taskInstance = jbpmContext.getTaskInstance(taskInstanceId);
    taskInstance.end();
  }

  public List<TaskInstance> getTaskList(String actorId) {
    newTransaction();
    List<TaskInstance> taskList = jbpmContext.getTaskList(actorId);
View Full Code Here

    taskVariables.put("item", "cookies");
    taskVariables.put("quantity", "lots of them");
    taskVariables.put("address", "sesamestreet 46");
   
    taskInstance.addVariables(taskVariables);
    taskInstance.end();
   
    assertEquals("cookies", contextInstance.getVariable("item"));
    assertEquals("lots of them", contextInstance.getVariable("quantity"));
    assertEquals("sesamestreet 46", contextInstance.getVariable("address"));
    assertEquals("cookie monster", taskMgmtInstance.getSwimlaneInstance("buyer").getActorId());
View Full Code Here

  public void testEvaluateAssignment() {
    jbpmContext.setActorId("cookie monster");
    // create a task to start the websale process
    TaskInstance taskInstance = createNewProcessInstance();
    taskInstance.setVariable("item", "cookies");
    taskInstance.end();
    jbpmContext.save(processInstance);
    processInstanceId = processInstance.getId();
   
    newTransaction();
   
View Full Code Here

    assertNull(evaluateTaskInstance.getEnd());
  }

  public void testEvaluateOk() {
    TaskInstance taskInstance = createNewProcessInstance();
    taskInstance.end();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
    TaskInstance evaluateTaskInstance = (TaskInstance) jbpmContext.getTaskMgmtSession().findTaskInstances("ernie").get(0);
View Full Code Here

    jbpmContext.save(processInstance);
   
    newTransaction();
   
    TaskInstance evaluateTaskInstance = (TaskInstance) jbpmContext.getTaskMgmtSession().findTaskInstances("ernie").get(0);
    evaluateTaskInstance.end("OK");
    jbpmContext.save(evaluateTaskInstance);

    newTransaction();
   
    List erniesTasks = jbpmContext.getTaskMgmtSession().findTaskInstances("bert");
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.