-
1. Re: how to add deadline and escalation to the human task in process designer
swiderski.maciej Aug 2, 2013 1:30 AM (in response to wguo)1 of 1 people found this helpful -
2. Re: how to add deadline and escalation to the human task in process designer
wguo Aug 7, 2013 11:01 PM (in response to swiderski.maciej)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 Aug 8, 2013 3:23 AM (in response to swiderski.maciej)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 Aug 8, 2013 9:05 AM (in response to wguo)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 Aug 8, 2013 11:01 PM (in response to swiderski.maciej)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 Aug 9, 2013 1:51 AM (in response to wguo)1 of 1 people found this helpfulLook 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