public static function dependsOn() { $integrationVersion = new KalturaVersion(self::INTEGRATION_PLUGIN_VERSION_MAJOR, self::INTEGRATION_PLUGIN_VERSION_MINOR, self::INTEGRATION_PLUGIN_VERSION_BUILD); $integrationDependency = new KalturaDependency(IntegrationPlugin::getPluginName(), $integrationVersion); $bpmVersion = new KalturaVersion(self::BPM_PLUGIN_VERSION_MAJOR, self::BPM_PLUGIN_VERSION_MINOR, self::BPM_PLUGIN_VERSION_BUILD); $bpmDependency = new KalturaDependency(BusinessProcessNotificationPlugin::getPluginName(), $bpmVersion); return array($integrationDependency, $bpmDependency); }
public function abort($scope) { $abortCaseJobType = BusinessProcessNotificationPlugin::getBusinessProcessNotificationTemplateTypeCoreValue(BusinessProcessNotificationTemplateType::BPM_ABORT); $this->aborting = true; try { $ret = $this->dispatchPerCase($scope, $abortCaseJobType); } catch (Exception $e) { $this->aborting = false; throw $e; } $this->aborting = false; return $ret; }
public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob) { if ($dbBatchJob->getJobType() != EventNotificationPlugin::getBatchJobTypeCoreValue(EventNotificationBatchType::EVENT_NOTIFICATION_HANDLER)) { return false; } if ($dbBatchJob->getJobSubType() != BusinessProcessNotificationPlugin::getBusinessProcessNotificationTemplateTypeCoreValue(BusinessProcessNotificationTemplateType::BPM_START)) { return false; } if ($dbBatchJob->getStatus() != BatchJob::BATCHJOB_STATUS_FINISHED) { return false; } return true; }
public function __construct() { $this->type = BusinessProcessNotificationPlugin::getApiValue(BusinessProcessNotificationTemplateType::BPM_ABORT); }
public function __construct() { $this->setType(BusinessProcessNotificationPlugin::getBusinessProcessNotificationTemplateTypeCoreValue(BusinessProcessNotificationTemplateType::BPM_ABORT)); parent::__construct(); }