4 Replies Latest reply on Oct 25, 2007 9:58 AM by kukeltje

    autostart a task

    neuquino

      Is there any way to start a task automatically? So not to press Start link in each task at the jbpm-console?
      Thanks.
      Regards,
      Neuquino

        • 1. Re: autostart a task
          kukeltje

          you could try writing an actionhandler that on the task-create event also starts it. Not sure if it works, but giving it a try won't hurt

          • 2. Re: autostart a task
            neuquino

            ok, thanks kukeltje, I thought it was an attribute or something that could make the task "autostartable"
            Thanks for your reply again.
            Neuquino

            • 3. Re: autostart a task
              dleerob

              We wanted to auto end a task. So we added an action which called taskInstance.end() after it had done some work. We had to add this action to a timer, then it worked fine.

              When adding it to a task-create event, it threw a locked Token exception?

              • 4. Re: autostart a task
                kukeltje

                Correct, it is impossible to start and end a task at the same time.