5 Replies Latest reply on Jun 21, 2013 12:58 PM by Shobhit Tyagi

    Human Task are not getting assigned

    xenthik Newbie

      JBPM 5.4  full installer is coming with H2 database, which is in memory database. It is ok for demo purpose only and but cann't be used for realistic application.

       

      When I am connecting it to the mysql (version 5.2) database by reading instruction from

      1. 1. (http://docs.jboss.org/jbpm/v5.4/userguide/ch.installer.html#d0e884 instruction are @ this link are incomplete and mismatching with the actual installer which has wasted a lot of time and
      2. 2. https://community.jboss.org/wiki/SetUpJBPM54FinalInstallerToUseMySQL-OrHowToRunSection37OfTheUserGuide?_sscc=t

       

      According to the instruction we need to create two database schema (Jbpm5 and Task) which will get automatically populated through hibernate when application deployed on jboss server. But when I am doing it only jbpm5 gets populated, but task DB get remains empty. I tried it hundreds of time by doing many changes in the configurations, but it’s not working and I think, due to this, human tasks are not getting assigned to any user or group through JBPM console.

       

      Please  help

        • 1. Re: Human Task are not getting assigned
          Shobhit Tyagi Master

          Could you post your code to start the process please. And if possible could you use jBPM 5.4? Its the most stable of the lot.

          • 2. Re: Human Task are not getting assigned
            xenthik Newbie

            actually its not related with any process. its giveing problem with almost all process where human task is involve. my first doubt is :

             

            as per the instruction @ http://docs.jboss.org/jbpm/v5.4/userguide/ch.installer.html#d0e659 we need to create two database schema one is jbpm5 and other one is task, in my case only jbpm5 gets popluated, is it ok? task schema remains empty,

             

            what i have notice is configration for task schema is done in jbpm-installer\task-service\resources\META-INF\persistence.xml and when we start demo with ant command (ant start.demo), in the build.xml, it is not executing start.human.task which starts task service, further more in the jbpm-installer\task-service\resources\META-INF\persistence.xml, there is mapping file <mapping-file>META-INF/Taskorm.xml</mapping-file> @ line no 11, but actually this file not exist. when i am trying to execute the following, i am getting this.

             

            d:\JBPM\jbpm-5.4.0.Final-installer-full\jbpm-installer>ant start.human.task

            Buildfile: d:\JBPM\jbpm-5.4.0.Final-installer-full\jbpm-installer\build.xml

             

             

            start.human.task:

                [javac] d:\JBPM\jbpm-5.4.0.Final-installer-full\jbpm-installer\build.xml:865

            : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=las

            t; set to false for repeatable builds

                 [java] Exception in thread "main" java.lang.Error: Unresolved compilation p

            roblems:

                 [java]     EntityManagerFactory cannot be resolved to a type

                 [java]     Persistence cannot be resolved

                 [java]     TaskService cannot be resolved to a type

                 [java]     TaskService cannot be resolved to a type

                 [java]     SystemEventListenerFactory cannot be resolved

                 [java]     TaskServiceSession cannot be resolved to a type

                 [java]     User cannot be resolved to a type

                 [java]     User cannot be resolved to a type

                 [java]     TaskService cannot be resolved

                 [java]     User cannot be resolved to a type

                 [java]     Group cannot be resolved to a type

                 [java]     Group cannot be resolved to a type

                 [java]     TaskService cannot be resolved

                 [java]     Group cannot be resolved to a type

                 [java]     UserGroupCallbackManager cannot be resolved

                 [java]     MinaTaskServer cannot be resolved to a type

                 [java]     MinaTaskServer cannot be resolved to a type

                 [java]

                 [java]     at org.jbpm.DemoTaskService.main(DemoTaskService.java:25)

                 [java] Java Result: 1

             

             

            BUILD SUCCESSFUL

            Total time: 1 second

            • 3. Re: Human Task are not getting assigned
              Shobhit Tyagi Master

              Okay. As for the task server is concerned, you dont need to start it explicitly. It is in the war file as a servlet which loads on startup. As soon as the depployment becomes succesful, the human task service starts up. Are you setting task handler and registering it to the session before starting a process? For that reason i asked you for your code.

              • 4. Re: Human Task are not getting assigned
                xenthik Newbie

                so you mean task schema remains empty ? if yes then what is its purose of creating it ?

                • 5. Re: Human Task are not getting assigned
                  Shobhit Tyagi Master

                  No i didnt say that.

                  I meant that you dont have to run ant start.human.task.

                   

                  Plus if you show me your code, i may be able to help you..