private function onBusinessProcessStart(BatchJob $dbBatchJob, kBusinessProcessNotificationDispatchJobData $data) { $object = $data->getObject(); $template = EventNotificationTemplatePeer::retrieveByPK($data->getTemplateId()); if ($template instanceof BusinessProcessNotificationTemplate) { $caseId = $data->getCaseId(); $template->addCaseId($object, $caseId); } return true; }