[英]Incorporating a workflow Initiation Infopath form in Visual Studio 2010 for Sharepoint 2010
I am having issues trying to implement a workflow that pops up a infopath form when the workflow is activated. 我在尝试实现工作流程时遇到问题,该工作流程在激活工作流程时会弹出一个信息路径表单。 I followed the code project tutorial which gives a great example on how to link forms to tasks, but I have not been able to find any examples that uses Infopath forms for initiation and associated forms.
我遵循了代码项目教程,该教程提供了一个很好的示例,说明如何将表单链接到任务,但是我找不到任何将Infopath表单用于初始化和关联表单的示例。
My current workflow elements.xml file looks like this after running the tutorial: 运行本教程后,我当前的工作流elements.xml文件如下所示:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="DocReview - DocReview"
Description="My SharePoint Workflow"
Id="fdfd5e60-2210-4f67-9883-085090181816"
CodeBesideClass="DocReview.Workflow1.Workflow1"
CodeBesideAssembly="$assemblyname$"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
<Categories/>
<AssociationData>
<Data></Data>
</AssociationData>
<MetaData>
<AssociationCategories>List</AssociationCategories>
<Task0_FormURN>urn:schemas-microsoft-com:office:infopath:StartDocumentReview:-myXSD-2012-03-19T05-38-09</Task0_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>
I tried adding a the Instantiation_FormURN and Association_FormURN elements in the elements.xml file using the same form but still cannot pop up the form on workflow activation. 我尝试使用相同的表单在elements.xml文件中添加Instantiation_FormURN和Association_FormURN元素,但在工作流程激活时仍然无法弹出表单。 What m I missing?
我想念什么?
To achieve this, the workflow element requires the following attribute InstantiationURL="_layouts/IniWrkflIP.aspx". 为此,工作流元素需要以下属性InstantiationURL =“ _ layouts / IniWrkflIP.aspx”。 This works in conjunction with the Instantiation_FormURN element.
这与Instantiation_FormURN元素结合使用。
Is complicated to make it work, but if you follow this article from start to finish you will. 使它工作起来很复杂,但是如果您从头至尾地遵循本文,您将可以做到。 http://spblog.net/post/2012/03/07/Creating-InfoPath-association-%28or-instantiation%29-form-for-SharePoint-2010-Visual-Studio-workflow.aspx
http://spblog.net/post/2012/03/07/Creating-InfoPath-association-%28or-instantiation%29-form-for-SharePoint-2010-Visual-Studio-workflow.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.