6 Replies Latest reply on Aug 9, 2013 1:51 AM by swiderski.maciej

    how to add deadline and escalation to the human task in process designer

    wguo

      Hi , 

       

          I am a new jbpm user , now i want to add deadline and escalation to the human task , how should i do in the process designer , i see there is a Notificatons item in the right panel which contains 'expries at , from , to , ...'  .  Is it the way to implement the deadline ?  Can anyone help to check it and give some advices?

       

      Thanks!

        • 1. Re: how to add deadline and escalation to the human task in process designer
          swiderski.maciej

          yes, you can either use web designer or eclipse editor. Some details can be found here.

           

          HTH

          1 of 1 people found this helpful
          • 2. Re: how to add deadline and escalation to the human task in process designer
            wguo

            Hi ,

             

                I see the "To Users" and "To Groups" is required when i define  a notification of a human task , i mean if just notificate the owners set earlier but not others , can i ignore these two fields or if there is any other alternative solution . 

             

            Thanks.

            • 3. Re: how to add deadline and escalation to the human task in process designer
              wguo

              Hi , Maciej

               

                  Now i add a notification to a human task , but when it exe , it reports the following errors:

               

              15:05:33,840 ERROR [org.jbpm.task.service.TaskService] (pool-13-thread-1) Operation failed: java.lang.RuntimeException: Operation failed

                  at org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1206) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  at org.jbpm.task.service.TaskService.executeEscalatedDeadline(TaskService.java:290) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  at org.jbpm.task.service.TaskService$ScheduledTaskDeadline.call(TaskService.java:426) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_09-icedtea]

                  at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_09-icedtea]

                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [rt.jar:1.7.0_09-icedtea]

                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [rt.jar:1.7.0_09-icedtea]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]

                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

              Caused by: java.lang.NullPointerException

                  at org.jbpm.task.service.DefaultEscalatedDeadlineHandler.buildMapByLanguage(DefaultEscalatedDeadlineHandler.java:321) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  at org.jbpm.task.service.DefaultEscalatedDeadlineHandler.executeEmailNotification(DefaultEscalatedDeadlineHandler.java:213) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  at org.jbpm.task.service.DefaultEscalatedDeadlineHandler.executeEscalatedDeadline(DefaultEscalatedDeadlineHandler.java:197) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  at org.jbpm.task.service.TaskServiceSession.executeEscalatedDeadline(TaskServiceSession.java:1191) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                  ... 9 more

               

               

              when i track the source code , i see it reported from here :

              method:   executeEmailNotification

              for ( OrganizationalEntity entity : notification.getBusinessAdministrators() ) {

               

               

              I just define a notification without any config about BA , but it indeed go here , so can you have any advice ?

               

              Thanks !

              • 4. Re: how to add deadline and escalation to the human task in process designer
                swiderski.maciej

                looks like you don't have UserInfo configured, see this post for some hints that might help you out.

                 

                HTH

                • 5. Re: how to add deadline and escalation to the human task in process designer
                  wguo

                  Hi Maciej ,

                   

                        

                          UserGroupCallbackManager.getInstance().setCallback(userGroupCallback);

                          TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());

                          taskService.setUserinfo(userInfo);

                   

                          Both the userGroupCallback and userInfo had beed configured in code .

                  • 6. Re: how to add deadline and escalation to the human task in process designer
                    swiderski.maciej

                    Look at this initialization code, you need to set the user info on the escalation handler too. Make sure you use the escalation handler instance when setting up the task service so the proper one will be used.

                     

                    HTH

                    1 of 1 people found this helpful