Trigub_Ilia

Посмотреть содержимое бизнес процесса

Sep 20th, 2020
710
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use Bitrix\Main;
  2. use Bitrix\Main\Localization\Loc;
  3.  
  4. if(!Main\Loader::includeModule('bizproc') || !Main\Loader::includeModule('bizprocdesigner'))
  5. {
  6.     return;
  7. }
  8.  
  9. $arFieldsTemplate = \CBPWorkflowTemplateLoader::GetList([], ['ID' => 31])->GetNext();//31 ID - бизнес процесса
  10. $template = $arFieldsTemplate["TEMPLATE"];
  11. echo "<pre>";
  12. print_r($template);
  13. echo "</pre>";
RAW Paste Data