6 Replies Latest reply on Aug 24, 2005 5:46 PM by Ivan Noboa

    Table JBPM_PROCESSDEFINITION

    Ivan Noboa Newbie

      I'm trying to run an jBPM application drawn with Magic Draw under AndroMDA using the jBPM cartridge for AndroMDA, but when I call :

      session.getGraphSession().saveProcessInstance(remindActorInstance) ;
      I got the message :Table not found: JBPM_PROCESSDEFINITION, but if I try to create the tables I get another error :
      You cannot commit during a managed transaction! (java.lang.Exception)
      .

      This is my code:

      final ec.gov.sri.websaleSample.busines_layer.WebSaleService WebSaleServicedb = getWebSaleService();
      WebSaleServicedb.createjBPMSchema() ;

      final org.jbpm.db.JbpmSession session = org.jbpm.db.JbpmSessionFactory.getInstance().openJbpmSession() ;

      session.beginTransaction() ;

      org.jbpm.graph.def.ProcessDefinition remindActorProcess = session.getGraphSession().findLatestProcessDefinition("remindActor") ;
      org.jbpm.graph.exe.ProcessInstance remindActorInstance = new org.jbpm.graph.exe.ProcessInstance(remindActorProcess);
      remindActorInstance.signal();

      session.getGraphSession().saveProcessInstance(remindActorInstance) ;

      System.out.println("\n\n\n *************** Veamos si es cierto ===> remindActor with " + request.getParameterNames() + "**********************\n\n\n");
      session.commitTransaction() ;

      session.close();


      Would somebaody help me, please?