3 Replies Latest reply on Nov 24, 2009 4:07 PM by Joram Barrez

    jBPM 4.1 takeTask() race condition

    Scott Peterson Newbie

      See original user forum thread: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265708

      One correction to my original post is that I'm getting a JbpmException. The StaleObjectStateException is produced but not allowed to propagate.

      My company has a legacy workflow system that lets users click a "Get Next Task" button. The system then decides which task they should get based on task priority, user skill level, phase of the moon, etc. Once that's decided, the system puts it on the user's personal task list. The key is that this all happens atomically inside the database, so two users never end up with the same task.

      What would it take to accomplish this with jBPM? Opinion on how valuable this would be to the overall user base?

      Thanks
      Scott