Package org.jbpm.persistence

Examples of org.jbpm.persistence.PersistenceService


  /**
   * more graph (process) related database access.
   */
  public GraphSession getGraphSession()
  {
    PersistenceService persistenceService = getPersistenceService();
    return (persistenceService != null ? persistenceService.getGraphSession() : null);
  }
View Full Code Here


  /**
   * more task related database access.
   */
  public TaskMgmtSession getTaskMgmtSession()
  {
    PersistenceService persistenceService = getPersistenceService();
    return (persistenceService != null ? persistenceService.getTaskMgmtSession() : null);
  }
View Full Code Here

      JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
      if (jbpmContext != null)
      {
        Services services = jbpmContext.getServices();
        MessageService messageService = services.getMessageService();
        PersistenceService persistenceService = services.getPersistenceService();
        if (messageService != null
            && persistenceService != null
            && persistenceService.getJobSession().countDeletableJobsForProcessInstance(this) > 0)
        {
          CleanUpProcessJob job = new CleanUpProcessJob(rootToken);
          job.setDueDate(new Date());
          messageService.send(job);
        }
View Full Code Here

   * sets the hibernate session factory into the default configured persistence
   * service, overwriting the configured session factory (if there is one configured).
   * @throws ClassCastException if another persistence service is configured then the default.
   */
  public void setSessionFactory(SessionFactory sessionFactory) {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return;
    persistenceService.setSessionFactory(sessionFactory);
  }
View Full Code Here

  /**
   * more variables related database access.
   */
  public ContextSession getContextSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return persistenceService.getContextSession();
  }
View Full Code Here

  }
  /**
   * more logging related database access.
   */
  public LoggingSession getLoggingSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getLoggingSession() : null);
  }
View Full Code Here

  }
  /**
   * more messaging related database access.
   */
  public MessagingSession getMessagingSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getMessagingSession() : null);
  }
View Full Code Here

  }
  /**
   * more scheduling related database access.
   */
  public SchedulerSession getSchedulerSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getSchedulerSession() : null);
  }
View Full Code Here

  }
  /**
   * more graph (process) related database access.
   */
  public GraphSession getGraphSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getGraphSession() : null);
  }
View Full Code Here

  }
  /**
   * more task related database access.
   */
  public TaskMgmtSession getTaskMgmtSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getTaskMgmtSession() : null);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.persistence.PersistenceService

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.