本文整理汇总了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();
示例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) {