2 Replies Latest reply on Jan 11, 2010 4:40 AM by engelgo

    Optimistic locking during task assignment

    xnejp03.pnejedly.ondemand.co.uk

      Hello,


      is it possible to check for optimistic locking exception (or StaleStateException) when using PooledTask.assign()? In our case, we have a 'Pooled tasks' screen. I want to disable assigning a task to a user if the task has in the meantime been assigned by/to someone else.


      The exception is never throws in the Seam component and the task is simply assigned to the later user who claims it.


      Cheers,


      Petr