%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/activities/bitrix/deletedocumentactivity/ |
Current File : /home/bitrix/www/bitrix/activities/bitrix/deletedocumentactivity/deletedocumentactivity.php |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); class CBPDeleteDocumentActivity extends CBPActivity { public function __construct($name) { parent::__construct($name); $this->arProperties = array("Title" => ""); } public function Execute() { $documentId = $this->GetDocumentId(); $documentService = $this->workflow->GetService("DocumentService"); $documentService->DeleteDocument($documentId); return CBPActivityExecutionStatus::Closed; } public static function GetPropertiesDialog($documentType, $activityName, $arWorkflowTemplate, $arWorkflowParameters, $arWorkflowVariables, $arCurrentValues = null, $formName = "", $popupWindow = null, $siteId = '') { $dialog = new \Bitrix\Bizproc\Activity\PropertiesDialog(__FILE__, array( 'documentType' => $documentType, 'activityName' => $activityName, 'workflowTemplate' => $arWorkflowTemplate, 'workflowParameters' => $arWorkflowParameters, 'workflowVariables' => $arWorkflowVariables, 'currentValues' => $arCurrentValues, 'formName' => $formName, 'siteId' => $siteId )); return $dialog; } public static function GetPropertiesDialogValues($documentType, $activityName, &$arWorkflowTemplate, &$arWorkflowParameters, &$arWorkflowVariables, $arCurrentValues, &$arErrors) { return true; } }