3 Replies Latest reply on May 31, 2011 8:29 AM by frankee787

    How to define deadlines and escalations for human tasks

    devora

      Hi!

      Could someone please tell me how do I define deadlines and wscalations for human tasks?

      Thanks!

        • 1. Re: How to define deadlines and escalations for human tasks
          frankee787

          Anyone figured this out ?

          • 2. Re: How to define deadlines and escalations for human tasks
            eaa

            I have some simple examples using escalation and deadlines here:

            https://github.com/esteban-aliverti/JBPM-Samples/tree/master/Simple-Task-Life-Cycle-Sample

             

            They are very simple examples, but I think they will serve as a starting point for you.

            • 3. Re: How to define deadlines and escalations for human tasks
              frankee787

              Finally got it working..... a bit. However, I am not using any processes. Just creating task and setting all those deadline things. The emails are being sent out as notifications but I get a NullPointerException like this.

               

               

              java.lang.NullPointerException

                        at org.jbpm.process.workitem.email.EmailWorkItemHandler.executeWorkItem(EmailWorkItemHandler.java:94)

                        at org.jbpm.task.service.DefaultEscalatedDeadlineHandler.executeEmailNotification(DefaultEscalatedDeadlineHandler.java:235)

                        at org.jbpm.task.service.DefaultEscalatedDeadlineHandler.executeEscalatedDeadline(DefaultEscalatedDeadlineHandler.java:118)

                        at org.jbpm.task.service.TaskService.executeEscalatedDeadline(TaskService.java:167)

                        at org.jbpm.task.service.TaskService$ScheduledTaskDeadline.call(TaskService.java:272)

                        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

                        at java.util.concurrent.FutureTask.run(Unknown Source)

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                        at java.lang.Thread.run(Unknown Source)

               

              I believe this is because I am not setting any WorkItemManager, which I dont have because I dont have any process.

               

              Is my understanding correct.