liukun2009 发表于 2015-9-28 09:58:23

SharePoint 2013 Workflow 状态栏失效

  在新的SharePoint版本中,并不直接支持状态栏,需要做如下配置才能生效
  1. 添加引用C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\WorkflowActivities\Microsoft.SharePoint.WorkflowServices.Activities.dll
  2. 如果需要支持直接绑定,在关联文件中,添加属性

<Property Name=&quot;MetaInfo&quot;
Value=&quot;WSEventContextKeys:SW|StatusColumnCreated;#WorkflowService\r\nCreatedBySPD;
#WorkflowService\r\nCurrentWebUri;#WorkflowService\r\nHistoryListId;
#WorkflowService\r\nSharePointWorkflowContext.ActivationProperties.SiteId;
#WorkflowService\r\nTaskListId;#WorkflowService\r\nSharePointWorkflowContext.ActivationProperties.WebId;
#WorkflowService\r\nMicrosoft.SharePoint.ActivationProperties.ListId;
#WorkflowService\r\nMicrosoft.SharePoint.ActivationProperties.ListName;
#WorkflowService\r\nMicrosoft.SharePoint.ActivationProperties.CurrentItemUrl;
#Instance\r\nMicrosoft.SharePoint.ActivationProperties.ItemId;
#Instance\r\nMicrosoft.SharePoint.ActivationProperties.ItemGuid;
#Instance\r\nStatusFieldName;#WorkflowService\r\nMicrosoft.SharePoint.ActivationProperties.RelatedItems;
#Instance\r\n&#xD;&#xA;StatusColumnCreated:SW|1&#xD;&#xA;StatusFieldName:SW|OData__x7533__x8bf7__x8bf7__x5047_&#xD;&#xA;&quot; />
  3. 在工具栏中增加控件

  4. 再在流程定义图里引用这个控件就可以了。
页: [1]
查看完整版本: SharePoint 2013 Workflow 状态栏失效