1 2 Previous Next 16 Replies Latest reply on Aug 19, 2009 4:49 PM by kukeltje

    jBPM 4 reminders

    gleenders

      Hi,

      If I want to implement reminders in jBPM 4 what do have to set up to get this working?

      It is not clear to me when the jBPM engine poll's the tasks to see if it has to send a reminder. So for the moment nothing happens with the reminders attached to my tasks (no reminders mails are send automatically).

      How do I have to design my web application to achieve the best jBPM integration?

      Regards,
      Gert

        • 1. Re: jBPM 4 reminders
          kukeltje

          I would think reminders are jobs, so if timers etc work task-reminders should to.

          Designing your webapp is a totally different thing and not answered easily. Not that it is difficult to incorporate jBPM, but there are so many ways, also depending on frameworks you use (spring/seam, jsf/gwt, etc..etc...) So a more specific question would be handy

          • 2. Re: jBPM 4 reminders
            gleenders

            Ronald,

            Timers etc also don't work. My environment is a JSF (ADF Faces) Application who runs on a WebLogic 11g. Until now my app is more a 'quick and dirty' approach to see if I get everything working under this new environment. For the moment my process engine is in a singleton and is only called if needed.

            But to get the jobs working I suppose I have to get the process engine running as service (According the dev guide chapter 15.4) and bound to JNDI. Since I have little experience in this area and since the dev guide explanation is very brief I could use some help here.

            I remember from my jBPM 3 experience that the process engine was polling the DB all the time (on JBoss). My current jBPM 4 WebLogic app's process engine is not polling at all. So my first concern is to set it up as a service.

            Regards,
            Gert

            • 3. Re: jBPM 4 reminders
              jbarrez

              Gert,

              It is not necessary to run on a JEE server. You just need to enhance your configuration to include the job executor to make timers and reminders work:

              http://docs.jboss.com/jbpm/v4.0/devguide/html_single/#jobexecutor

              • 4. Re: jBPM 4 reminders
                kukeltje

                @Joram,

                I would have expected having a job executor in your config to be the default.

                • 5. Re: jBPM 4 reminders
                  jbarrez

                  @Ronald

                  The examples don't have a job executor since there the jobs are executed programmatically for readability. So we can't add it straight away to the default config since it will make the examples do unexpected things ...

                  But I do agree that the configuration needs some documentation, seeing how many people forget to include the job executor....

                  • 6. Re: jBPM 4 reminders
                    gleenders

                    That would saved (a lot of) time for me :-)

                    • 7. Re: jBPM 4 reminders
                      kukeltje

                      I agree that it should not be included for the examples. But the default deployment of the engine should (the one deployed when deploying the console) Or does that have it (did not check, sorry)

                      • 8. Re: jBPM 4 reminders
                        jbarrez

                        Yep, the console installation does have the job executor installed.

                        • 9. Re: jBPM 4 reminders
                          kukeltje

                          Gert,

                          If you get reminders to work I'd like you to test if the template for the mail that is used is really the reminder template. I suspect a bug, looking at the source of the jPDL parser that the task-notification template is used. At least if you do not configure the template attribute and xsd workaround that I suggested in the task-notification issue.

                          If you 'hurry' with this, fixes might make it into 4.1 (although there officially already is a jira freeze)

                          • 10. Re: jBPM 4 reminders
                            rujimethut

                            I have been using jbpm4.1-Snapshot which was built from the source, It is still a problem that the task reminder is using task-notification email template, I have to set the template attribute to point to the task-reminder template and I have to turn-off xml validation to get it works

                            • 11. Re: jBPM 4 reminders
                              gleenders

                              @Ronald: Indeed as Rujimethut already said, the bug is still there.

                              • 12. Re: jBPM 4 reminders
                                kukeltje

                                Thanks for reporting. I think I can get this fixed in 4.1 IF you guys file a jira issue for the task-notification template thing on the reminder.

                                • 13. Re: jBPM 4 reminders
                                  kukeltje
                                  • 14. Re: jBPM 4 reminders
                                    kukeltje

                                    <duplicate post>Can someone other then me check if it works now against svn-trunk. So removing of the xsd should not be needed as is specifying of a template on reminder to get the right template being used.</duplicate post>

                                    1 2 Previous Next