工作流任务更改后,SharePoint Worflow 扩展属性不会保留其值
我正在使用 SharePoint 2010 工作流程,在 Infopaht 2010 中创建了几个任务编辑表单。
这是 参考我如何从 SharePoint 工作流在 TaskEdit 表单中指定扩展属性值。与参考文章类似,在我的任务编辑表单中,我也有一个文本框,我将其值指定为工作流程中的扩展属性。
我的问题是,一旦创建了工作流任务,扩展属性就会正确显示在任务编辑表单中,但是当用户更改指向前方的任务时,如果用户再次打开其分配的工作流任务,则不会保留扩展属性值。它显示为空白。
以下是我如何从工作流的 CreateTask 活动中指定扩展属性。
SPWorkflowTaskProperties wtp = new SPWorkflowTaskProperties();
wtp.ExtendedProperties["ExtendedPropertyField"] = "Some text value";
我是否必须在任务更改事件的某个地方重置它?我在这里错过了什么吗?有什么想法吗?
谢谢。
I am using SharePoint 2010 Workflow where i have created couple of Task Edit Forms in Infopaht 2010.
Here is the reference of how i am specifying extended property value in TaskEdit form from the SharePoint Workflow. Similar to the refrence article, In my TaskEdit Form also i have one Text box whose value i specified as extended property from my workflow.
My Problem is that once a workflow task is created the extended propery is properly displayed in the task edit form, but when the user changes the task that point onward if the user agains opens his assigned workflow task, the extended property value is not retained. It appears blank.
Here is how I am specifying the extended property from my workflow's CreateTask activity.
SPWorkflowTaskProperties wtp = new SPWorkflowTaskProperties();
wtp.ExtendedProperties["ExtendedPropertyField"] = "Some text value";
Do i have to reset it somewhere on task changed event ? Am i missing something here ? Any idea ?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我认为它应该在任务更改活动中重置/保留。
检查该字段是否在此事件期间保留
field_value 不应为 null。
谢谢
Yes I think it should be reset/retained in the on task changed activity.
Check if the field is retained during this event
field_value should not be null.
Thanks