繁体   English   中英

具有自定义信息路径表单的Sharepoint 2010工作流

[英]Sharepoint 2010 workflow with custom infopath form

我试图弄清楚如何在Sharepoint 2010工作流程中使用自定义Infopath表单。 我已经阅读了大约一百万本有关如何执行此操作的教程,但最终总是收到“该工作流模板未为此页面指定FormURN的信息”。 错误。

我使用Visual Studio项目来部署解决方案。 我有一个“ Forms”文件夹中包含.XSN表单的模块,当然还有工作流本身。

经过大量的谷歌搜索后,我认为这些设置应该是正确的:

我的表单模块定义:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="OPF" Url="FormServerTemplates" RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/">
    <File Path="Travel.xsn" Url="Travel.xsn" Type="GhostableInLibrary" />
  </Module>
</Elements>

我的工作流程定义:

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Workflow
     Name="Godkjenning av timelister"
     Description="My SharePoint Workflow"
     Id="d92ce465-4fbd-46ee-9e44-ff0320d2bb75"
     TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
     CodeBesideClass="OPFWorkflowTest2.Godkjenning_av_timelister.Godkjenning_av_timelister"
     InstantiationUrl="_layouts/IniWrkflIP.aspx"
     CodeBesideAssembly="$assemblyname$">
    <Categories/>
    <MetaData>
      <AssociationCategories>List</AssociationCategories>
      <MetaData>
        <Instantiation_FormURN>urn:schemas-microsoft-com:office:infopath:Travel:-myXSD-2005-10-21T21-12-27</Instantiation_FormURN>
      </MetaData>
      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
    </MetaData>
  </Workflow>
</Elements>

我的功能定义:

<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
   ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
  <Properties>
    <Property Key="GloballyAvailable" Value="true" />
    <Property Key="RegisterForms" Value="Forms\*.xsn" />
  </Properties>
</Feature>

我已经将Infopath中的表单发布为“管理员批准的表单模板”。 部署Visual Studio解决方案后,该表单将显示在“管理中心->管理表单模板”列表中,并标记为“已启用工作流=是”。 无论我如何在工作流程中使用表单,都会出现No FormURN错误。 例如,如果我尝试将其用于任务。

我尝试过的其他操作:
-使用Infopath 2007和2010
-Infopath表单上的安全性是“域”
-发布表单时,备用访问路径保留为空
-使用两个完全独立的环境
-XML文件中不同设置的无穷组合

似乎有些人设法使它起作用,但是无论我做什么,对我来说都不起作用。

这是一个使用各种解决方案讨论此问题的链接(对我不起作用):
http://social.msdn.microsoft.com/Forums/zh-CN/sharepoint2010programming/thread/fac26787-1729-46c8-9021-80652b3734c8

只能在Stack Overflow ...上列出1个链接。 典型...

因此,如果有任何Sharepoint专家,请帮助我解决此问题! 这是使我对整个产品产生疑问的事情!

与VS 2010工作流程关联后,我可以看到InfoPath表单,请在我的博客上找到以下文章,以验证发布的InfoPath表单,并告诉我是否需要任何帮助来解决上述问题。

http://sumansharepoint.blogspot.com/2008/05/points-to-remenber-when-designing.html这些步骤对于InfoPath 2007和2010表单都是相同的。

请在下面找到我的feature.xml和elements.xml文件

Workflow.xml

Name =“ MyWorkflow”->

清单

  <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2011-01-13T09-41-32</Task0_FormURN> <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl> </MetaData> 

Feature.xml

我没有在您的feature.xml代码中看到元素清单条目,请确认这一点。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM