Sharepoint - 使用工作流程创建列表的功能:可能吗?
我已使用 Sharepoint Solution Generator 导出了列表定义。 该列表与工作流程相关联。如果我在生成的“schema.xml”文件中搜索工作流程的名称,我会发现 XML 看起来像这样:
<Field DisplayName="publicationWorkflow" Type="WorkflowStatus" Required="FALSE" ID="{2a2504e5-5ad0-4a9f-8bf4-15ca29e49e02}" SourceID="{4ee14f93-1f9b-4dcf-8e50-dd046dfe0905}" StaticName="publicat" Name="publicat" ColName="nvarchar1" RowOrdinal="0" Version="2" WorkflowStatusURL="_layouts/WrkStat.aspx" ReadOnly="TRUE">
<CHOICES>
<CHOICE>Starting</CHOICE>
<CHOICE>Failed on Start</CHOICE>
<CHOICE>In Progress</CHOICE>
<CHOICE>Error Occurred</CHOICE>
<CHOICE>Canceled</CHOICE>
<CHOICE>Completed</CHOICE>
<CHOICE>Failed on Start (retrying)</CHOICE>
<CHOICE>Error Occurred (retrying)</CHOICE>
<CHOICE />
</CHOICES>
</Field>
然后我使用一个功能来重新生成列表及其来自 SSG 的定义,但工作流程从未创建,我必须转到列表的设置并手动关联工作流程...
所以我的第一个问题是:是否可以使用功能创建与工作流程关联的列表?
我的第二:如果是,怎么办?
I've exported a list definition with Sharepoint Solution Generator.
This list is associated with a workflow. If I search for the name of my workflow in the generated "schema.xml" file, I find XML that looks like this :
<Field DisplayName="publicationWorkflow" Type="WorkflowStatus" Required="FALSE" ID="{2a2504e5-5ad0-4a9f-8bf4-15ca29e49e02}" SourceID="{4ee14f93-1f9b-4dcf-8e50-dd046dfe0905}" StaticName="publicat" Name="publicat" ColName="nvarchar1" RowOrdinal="0" Version="2" WorkflowStatusURL="_layouts/WrkStat.aspx" ReadOnly="TRUE">
<CHOICES>
<CHOICE>Starting</CHOICE>
<CHOICE>Failed on Start</CHOICE>
<CHOICE>In Progress</CHOICE>
<CHOICE>Error Occurred</CHOICE>
<CHOICE>Canceled</CHOICE>
<CHOICE>Completed</CHOICE>
<CHOICE>Failed on Start (retrying)</CHOICE>
<CHOICE>Error Occurred (retrying)</CHOICE>
<CHOICE />
</CHOICES>
</Field>
Then I use a feature to regenerate the list with it's definition from SSG, but the workflow is never made, I have to go to the settings of the list and associate the workflow manually...
So my 1st question is : Is this possible to create a list associated with a workflow using a feature?
And my 2nd : if yes, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有默认方法将工作流关联到列表定义,如果您想这样做,则必须遵循以下选项之一:
There is no default way to associate a Workflow to the List Definition, If you want to do you have to follow one of the following option