6 Replies Latest reply on Jan 14, 2009 5:40 AM by rodosa

    Timers

    rodrigorev

      I have a problem with the timers in the task.
      I have defined:






        • 1. Re: Timers
          rodrigorev

          i have defined:







          in the class i have a system.out.println but i don't see the message after waiting the 20 seconds that i have defined.

          I am using my personal webapp deployed in tomcat.

          any idea?

          thanks

          • 2. Re: Timers
            rodrigorev

            sorry, i have problems with the code:

            <state name="state1">
            <timer duedate="20 seconds" name="imprimirMensaje">
            <action class="cinfo.proyecto.wf.modelo.handlers.ImprimirMensajeHandler"></action>
            </timer>
            <transition to="task-node1"></transition>
            </state>
            


            • 3. Re: Timers
              kukeltje

              is the scheduler running?

              • 4. Re: Timers
                rodosa

                How I could ckeck if the scheduler is running?? I'm using jboss jbpm 3.2.3 and in the deploy folder are two files called schedule-manager-service.xml & scheduler-service.xml but all its content are commented. How explain me a bit or redirect any site where I could find information about timers and this?


                Thanks

                • 5. Re: Timers
                  rodrigorev

                  i think that in the jbpm.cfg.xml must be appear the next line

                  <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
                  


                  but i don't know how to test that the scheduler is really running.

                  is this ok?

                  • 6. Re: Timers
                    rodosa

                    Have you solucionated this???

                    I've looked into the jboss jbpm log and I found this:

                    2009-01-14 11:37:08,812 INFO [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                    


                    I suposse that the scheduler is running but the timer doesn't work!!


                    Any ideas??Thanks