当前位置: 首页>>代码示例>>PHP>>正文


PHP CBPWorkflowTemplateLoader::checkTemplateActivities方法代码示例

本文整理汇总了PHP中CBPWorkflowTemplateLoader::checkTemplateActivities方法的典型用法代码示例。如果您正苦于以下问题:PHP CBPWorkflowTemplateLoader::checkTemplateActivities方法的具体用法?PHP CBPWorkflowTemplateLoader::checkTemplateActivities怎么用?PHP CBPWorkflowTemplateLoader::checkTemplateActivities使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CBPWorkflowTemplateLoader的用法示例。


在下文中一共展示了CBPWorkflowTemplateLoader::checkTemplateActivities方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$arAllActivities = $runtime->SearchActivitiesByType("activity", array(MODULE_ID, ENTITY, $document_type));
foreach ($arAllActivities as $activity) {
    if (!empty($activity['CATEGORY']['OWN_ID']) && !empty($activity['CATEGORY']['OWN_NAME'])) {
        $arAllActGroups[$activity['CATEGORY']['OWN_ID']] = $activity['CATEGORY']['OWN_NAME'];
    }
}
$arAllActGroups['other'] = GetMessage("BIZPROC_WFEDIT_CATEGORY_OTHER");
if ($ID > 0) {
    $APPLICATION->SetTitle(GetMessage("BIZPROC_WFEDIT_TITLE_EDIT"));
} else {
    $APPLICATION->SetTitle(GetMessage("BIZPROC_WFEDIT_TITLE_ADD"));
}
$arResult['DOCUMENT_TYPE'] = $document_type;
$arResult['ACTIVITY_GROUPS'] = $arAllActGroups;
$arResult['ACTIVITIES'] = $arAllActivities;
$arResult['TEMPLATE_NAME'] = $workflowTemplateName;
$arResult['TEMPLATE_DESC'] = $workflowTemplateDescription;
$arResult['TEMPLATE_AUTOSTART'] = $workflowTemplateAutostart;
$arResult['TEMPLATE'] = $arWorkflowTemplate;
$arResult['TEMPLATE_CHECK_STATUS'] = CBPWorkflowTemplateLoader::checkTemplateActivities($arWorkflowTemplate);
$arResult['PARAMETERS'] = $arWorkflowParameters;
$arResult['VARIABLES'] = $arWorkflowVariables;
$arResult['CONSTANTS'] = $arWorkflowConstants;
$arResult["ID"] = $ID;
$defUserParamsStr = serialize(array("groups" => array()));
$userParamsStr = CUserOptions::GetOption("~bizprocdesigner", "activity_settings", $defUserParamsStr);
if (empty($userParamsStr) || !CheckSerializedData($userParamsStr)) {
    $userParamsStr = $defUserParamsStr;
}
$arResult["USER_PARAMS"] = unserialize($userParamsStr);
$this->IncludeComponentTemplate();
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例2: GetMessage

        $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED") . " " . GetMessage("BIZPROC_WFEDIT_ERROR_TYPE"));
    }
    $canWrite = CBPDocument::CanUserOperateDocumentType(CBPCanUserOperateOperation::CreateWorkflow, $GLOBALS["USER"]->GetID(), array(MODULE_ID, ENTITY, $document_type));
    $workflowTemplateName = GetMessage("BIZPROC_WFEDIT_DEFAULT_TITLE");
    $workflowTemplateDescription = '';
    $workflowTemplateAutostart = 1;
    if ($_GET['init'] == 'statemachine') {
        $arWorkflowTemplate = array(array("Type" => "StateMachineWorkflowActivity", "Name" => "Template", "Properties" => array(), "Children" => array()));
    } else {
        $arWorkflowTemplate = array(array("Type" => "SequentialWorkflowActivity", "Name" => "Template", "Properties" => array(), "Children" => array()));
    }
    $arWorkflowParameters = array();
    $arWorkflowVariables = array();
    $arWorkflowConstants = array();
}
$templateCheckStatus = CBPWorkflowTemplateLoader::checkTemplateActivities($arWorkflowTemplate);
if (!$canWrite) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
function print_rrr($var)
{
    if (is_array($var)) {
        if ($var == array_values($var)) {
            foreach ($var as $key => $value) {
                $var[$key] = print_rrr($value);
            }
            return "Array(" . implode(", ", $var) . ")";
        }
        $res = "\nArray(\n";
        $first = true;
        foreach ($var as $key => $value) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:bizproc_workflow_edit.php


注:本文中的CBPWorkflowTemplateLoader::checkTemplateActivities方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。