Package org.jbpm.taskmgmt.exe

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


    if (variables != null && variables.size() > 0) {
      taskInstance.getContextInstance().addVariables(variables);
    }

    if (transitionName == null) {
      taskInstance.end();
    } else {
      taskInstance.end(transitionName);
    }
    return taskInstance;
  }
View Full Code Here


    }

    if (transitionName == null) {
      taskInstance.end();
    } else {
      taskInstance.end(transitionName);
    }
    return taskInstance;
  }

  protected TaskInstance getTaskInstance(JbpmContext jbpmContext) {
View Full Code Here

        ProcessInstance processInstance = contextInstance.getProcessInstance();
     
        if (request.getAttribute("CompletedActivity") != null){
          // Submit buttin named CompleteActivity is pressed
          SpagoBITracer.info("Workflow", "CompleteOrRejectActivityModule", "service", "Completing Activity ["+ activityKeyId + "]");
          taskInstance.end();
        } else {
          //  Submit buttin named RejectActivity is pressed
          SpagoBITracer.info("Workflow", "CompleteOrRejectActivityModule", "service", "Completing Activity ["+ activityKeyId + "]");
          taskInstance.cancel();
        }
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

         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

  public void testUnwritableVariableException() {
    testEvaluateAssignment();
    newTransaction();
    List erniesTasks = jbpmContext.getTaskMgmtSession().findTaskInstances("ernie");
    TaskInstance evaluateTaskInstance = (TaskInstance) erniesTasks.get(0);
    evaluateTaskInstance.end();

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

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

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

  public void testMoreInfoNeeded() {
    jbpmContext.setActorId("cookie monster");
     
    // create a task to start the websale process
    TaskInstance taskInstance = createNewProcessInstance();
    taskInstance.end();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
    TaskInstance evaluateTaskInstance = (TaskInstance) jbpmContext.getTaskMgmtSession().findTaskInstances("ernie").get(0);
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.