3 Replies Latest reply on Jun 16, 2008 1:57 PM by (WorkflowUser)

    Trigger Deadline Timer From Group Queue Claimed Event

    Stuart Mail Level 1
      Hi

      I'm trying to generate a Deadline when a Task is Claimed form a Group Queue.

      I've got a TaskClaimed event listener that catches the claim event from the group queue, but I'm stumped on how to then set the Deadline Time for the task when the user has claimed it.

      Girish very kindly send me a process that pokes the Deadline Date directly into the ES MySQL table - which does update the Deadline date as show for the task - however A) The Deadline never fires and B ) I know poking data into the ES tabels is bad practice.

      I've found a 'TaskDeadlineTimer' event that looks like it should do the job but can't figure out how to set it up to set the Deadline for thee specific Process / Task that has been claimed.

      Does any one have an example of configuring the 'TaskDeadlineTimer' ?

      Stuart
        • 1. Re: Trigger Deadline Timer From Group Queue Claimed Event
          HowardTreisman Level 1
          Hi Stuart
          I would be tempted to set up your own deadline logic, rather than trying to re-use LiveCycle's deadline logic. It shouldn't be too difficult:
          1. Set up a TaskClaimed Event listener (you've already done this)
          2. Use the Wait operation to wait for the amount of time your deadline lasts.
          3. When the Wait operation expires, you need to check whether the task has been completed. You can use the Status field in the getTaskDetails operation in one of Avoka's components (see below).
          4. If the status indicates that the task has not been completed, do whatever, you want to do as your deadline action. eg Send an email, automatically complete the task, (completeTask or completeTaskWithRoute, also in the same Avoka component), etc.

          You can get details of the ProcessUtils component here:
          http://avoka.dnsalias.com/confluence/display/Public/Process+Utils+DSC
          and you can download here:
          http://www.avoka.com/apps/checkcookie?qpac=y&qpac_code=avokaESComponents&location=%2Fapps% 2Fqpacdownload

          Howard
          http://www.avoka.com
          • 2. Re: Trigger Deadline Timer From Group Queue Claimed Event
            Level 1
            I have workaround for this and should be posting it on my blog very shortly
            thanks
            girish
            • 3. Re: Trigger Deadline Timer From Group Queue Claimed Event
              Level 1
              Hi
              Here is the workaround for the problem
              http://eslifeline.wordpress.com/2008/06/16/deadlining-a-group-task-when-a-task-is-claimed- from-group-queue/