工作流不活动 - 部署后?
题
我的工作流程通过以下脚本部署了SharePoint 2010:
# Set CurrentDirectory
$callingDir = Split-Path -Parent $MyInvocation.MyCommand.Path
[Environment]::CurrentDirectory = $callingDir
# Includes
$MainScriptName = "XXX.SharePoint.Powershell.YYY.ps1"
$MainScriptPath = Join-Path -Path $callingDir -ChildPath $MainScriptName
if (Test-Path $MainScriptPath)
{
# use file from local folder
. $MainScriptPath
}
else
{
# use central file (via PATH-Variable)
. $MainScriptName
}
Setup
$WebAppUrl = "NONE"
$SolutionPackageName = "Dataport.Survey.Webpart.wsp"
InstallSolution $SolutionPackageName $WebAppUrl
TearDown
.
之后,工作流程显示为“部署”(提供解决方案)。 如果我想使用工作流程(例如列表),我不能这样做。在里面 WebSetsettings(在“工作流”下)工作流程显示为非活动。 但为什么?我该怎么办用工作流?
提前谢谢!
解决方案
现在解决了问题。我在该功能上不小心设置了“隐藏=真”。 如果我在功能上设置“hidden= false”,则工作流可用。