[jboss-user] [jBPM] - Re: how to add deadline and escalation to the human task in process designer
Wells guo [https://community.jboss.org/people/wguo] created the discussion Re: how to add deadline and escalation to the human task in process designer To view the discussion, visit: https://community.jboss.org/message/831876#831876 -- 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 ! -- Reply to this message by going to Community [https://community.jboss.org/message/831876#831876] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: how to add deadline and escalation to the human task in process designer
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion Re: how to add deadline and escalation to the human task in process designer To view the discussion, visit: https://community.jboss.org/message/831944#831944 -- looks like you don't have UserInfo configured, see this http://mswiderski.blogspot.com/2012/06/self-managable-user-tasks-notification.html post for some hints that might help you out. HTH -- Reply to this message by going to Community [https://community.jboss.org/message/831944#831944] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: how to add deadline and escalation to the human task in process designer
Wells guo [https://community.jboss.org/people/wguo] created the discussion Re: how to add deadline and escalation to the human task in process designer To view the discussion, visit: https://community.jboss.org/message/832043#832043 -- 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 . -- Reply to this message by going to Community [https://community.jboss.org/message/832043#832043] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: how to add deadline and escalation to the human task in process designer
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion Re: how to add deadline and escalation to the human task in process designer To view the discussion, visit: https://community.jboss.org/message/832053#832053 -- Look at this initialization https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-human-task/jbpm-human-task-war/src/main/java/org/jbpm/task/servlet/HumanTaskServiceServlet.java#L88 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 -- Reply to this message by going to Community [https://community.jboss.org/message/832053#832053] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: how to add deadline and escalation to the human task in process designer
Wells guo [https://community.jboss.org/people/wguo] created the discussion Re: how to add deadline and escalation to the human task in process designer To view the discussion, visit: https://community.jboss.org/message/831858#831858 -- 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. -- Reply to this message by going to Community [https://community.jboss.org/message/831858#831858] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: how to add deadline and escalation to the human task in process designer
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion Re: how to add deadline and escalation to the human task in process designer To view the discussion, visit: https://community.jboss.org/message/831074#831074 -- yes, you can either use web designer or eclipse editor. Some details can be found http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e5078 here. HTH -- Reply to this message by going to Community [https://community.jboss.org/message/831074#831074] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user