Package org.jbpm.pvm.internal.task

Examples of org.jbpm.pvm.internal.task.TaskImpl.complete()


  public Void execute(Environment environment) throws Exception {
    DbSession dbSession = environment.get(DbSession.class);
    TaskImpl task = dbSession.get(TaskImpl.class, Long.parseLong(taskId));
    if (outcome==null) {
      task.complete();
    } else {
      task.complete(outcome);
    }
    dbSession.delete(task);
    return null;
View Full Code Here


    DbSession dbSession = environment.get(DbSession.class);
    TaskImpl task = dbSession.get(TaskImpl.class, Long.parseLong(taskId));
    if (outcome==null) {
      task.complete();
    } else {
      task.complete(outcome);
    }
    dbSession.delete(task);
    return null;
  }
}
View Full Code Here

    if (task == null) {
      throw new JbpmException("No task with id " + taskId + " was found");
    }
   
    if (outcomeSpecified) {
      task.complete(outcome);
    } else {
      task.complete();
    }
    dbSession.delete(task);
    return null;
View Full Code Here

    }
   
    if (outcomeSpecified) {
      task.complete(outcome);
    } else {
      task.complete();
    }
    dbSession.delete(task);
    return null;
  }
}
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.