Package org.jbpm.taskmgmt.exe

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


    jbpmContext.setActorId("cookie monster");
    // create a task to start the websale process
    taskInstance = processInstance.getTaskMgmtInstance().createStartTaskInstance();
    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 = processInstance.getTaskMgmtInstance().createStartTaskInstance();
    taskInstance.end();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
    TaskInstance evaluateTaskInstance = (TaskInstance) taskMgmtSession.findTaskInstances("ernie").get(0);
View Full Code Here

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

    newTransaction();
   
    List erniesTasks = taskMgmtSession.findTaskInstances("bert");
View Full Code Here

    List erniesTasks = taskMgmtSession.findTaskInstances("ernie");
    TaskInstance evaluateTaskInstance = (TaskInstance) erniesTasks.get(0);
    // this variable is set in the task instance variables, but
    // should not be submitted to the process context variables.
    evaluateTaskInstance.setVariable("item", "this is not allowed");
    evaluateTaskInstance.end();

    newTransaction();
   
    processInstance = graphSession.loadProcessInstance(processInstanceId);
    contextInstance = processInstance.getContextInstance();
View Full Code Here

    newTransaction();
   
    List erniesTasks = taskMgmtSession.findTaskInstances("ernie");
    TaskInstance evaluateTaskInstance = (TaskInstance) erniesTasks.get(0);
    evaluateTaskInstance.setVariable("comment", "wtf");
    evaluateTaskInstance.end("more info needed");
    jbpmContext.save(evaluateTaskInstance);
   
    newTransaction();

    List cookieMonsterTasks = taskMgmtSession.findTaskInstances("cookie monster");
View Full Code Here

    jbpmContext.setActorId("cookie monster");
     
    // create a task to start the websale process
    taskInstance = processInstance.getTaskMgmtInstance().createStartTaskInstance();
    taskInstance.end();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
    TaskInstance evaluateTaskInstance = (TaskInstance) taskMgmtSession.findTaskInstances("ernie").get(0);
View Full Code Here

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

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

        }
        getJbpmTemplate().execute(new JbpmCallback() {
            public Object doInJbpm(JbpmContext jbpmContext) throws JbpmException {
                TaskInstance taskInstance = getTaskInstance(taskInstanceId);
                if (taskInstance.getEnd() == null && !taskInstance.hasEnded()) {
                    taskInstance.end();
                    jbpmContext.save(taskInstance);
                }
                return null;
            }
        });
View Full Code Here

         transitionName = Transition.instance().getName();
      }
     
      if (transitionName==null)
      {
         task.end();
      }
      else
      {
         task.end(transitionName);
      }
View Full Code Here

      {
         task.end();
      }
      else
      {
         task.end(transitionName);
      }
     
      setTaskId(null); //TODO: do I really need this???!
     
      Events.instance().raiseEvent("org.jboss.seam.endTask." + task.getTask().getName());
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.