3 Replies Latest reply on Aug 8, 2006 6:21 PM by kukeltje

    How to implent Timer and scheduler in JBPM.

    anil.saraswat

      Hi,
      I am working on application where i need to create task based on user input. It will be a recurring task where recurrence can be daily weekly, monthly or quarterly. task will also have end date.
      I think i need to use timer and scheduler while implementing this.
      Has anybody implemented this before? Plese send me processdefination if u can.
      Any input is welcome.

      thanks

        • 1. Re: How to implent Timer and scheduler in JBPM.
          jbossnetweb

          Hi,

          if you getting information about sheduler and timer means how to implement it? then plz, forward me. i am very appriceate you if you give me information.

          Thanks

          • 2. Re: How to implent Timer and scheduler in JBPM.
            cpob

            So, for clarity's sake, you want to have the timer create a new task every n days? So, it would just sit on the same node and generate tasks every so often? Or it would progress through the graph?

            Implementing timers w/ the included scheduler is very simple. There are JUnit tests with the source that show how to do this. Section 12.1 in the user guide also discusses timers.

            If you're doing a simple "something needs to be done every so often" and not worry about a graph, you might just want to look at Quartz, a java scheduler. You might not need the flow of jBPM.

            • 3. Re: How to implent Timer and scheduler in JBPM.
              kukeltje

              Even jBPM has the wish to at least investigate dropping our own scheduler in favour of Quartz with its more advanced features (clustering etc...).