在新的SharePoint版本中,并不直接支持状态栏,需要做如下配置才能生效
1. 添加引用C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\WorkflowActivities\Microsoft.SharePoint.WorkflowServices.Activities.dll
2. 如果需要支持直接绑定,在关联文件中,添加属性
<Property Name="MetaInfo"
Value="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
StatusColumnCreated:SW|1
StatusFieldName:SW|OData__x7533__x8bf7__x8bf7__x5047_
" />
3. 在工具栏中增加控件
4. 再在流程定义图里引用这个控件就可以了。