Пример #1
0
  @Transactional(TransactionPropagationType.SUPPORTS)
  public void createJbpmSchema() throws Exception {
    // System.out.println("!!!!!!!!!!!!!!!!STARTTTTTT: " + Transaction.instance().isActive());
    Transaction.instance().commit();
    // System.out.println("!!!!!!!AFER COMMIT!!!!!!!!!: " + Transaction.instance().isActive());

    JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
    // System.out.println("!!!!!!!!!!!!!!!! after getting JBPM CONF: " +
    // Transaction.instance().isActive());
    jbpmConfiguration.createSchema();
    // System.out.println("!!!!!!!!!!!!!!!! AFTER CREATING SCHEMA: " +
    // Transaction.instance().isActive());
    // jbpmConfiguration.createSchema();
    // jbpmContext.getJbpmConfiguration().createSchema();

  }
 public void init() throws ServletException {
   String configurationName = getInitParameter("jbpm.configuration.resource", null);
   jbpmConfiguration = JbpmConfiguration.getInstance(configurationName);
   jbpmConfiguration.startJobExecutor();
 }