Package org.jbpm.env.session

Examples of org.jbpm.env.session.DbSession


      }
      commandService.execute(this);
    }
    public Object execute(Environment environment) {
      // reload the execution
      DbSession dbSession = environment.get(DbSession.class);
      if (dbSession==null) {
        throw new PvmException("no "+DbSession.class.getName()+" available in the environment for reloading the execution");
      }
      execution = dbSession.get(ExecutionImpl.class, execution.getDbid());
      executeHandler(execution, exception);
      return null;
    }
View Full Code Here


* @author Tom Baeyens
*/
public abstract class AbstractCommand implements Command {
 
  protected Execution getExecution(Environment environment, long executionId) {
    DbSession dbSession = environment.get(DbSession.class);
    Execution execution = dbSession.get(ExecutionImpl.class, executionId);
    if (execution==null) {
      throw new CommandException("execution "+executionId+" doesn't exist");
    }
    return execution;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.env.session.DbSession

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.