工作流任务更改后,SharePoint Worflow 扩展属性不会保留其值

发布于 2024-10-10 07:19:40 字数 630 浏览 0 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光暖心i 2024-10-17 07:19:40

是的,我认为它应该在任务更改活动中重置/保留。
检查该字段是否在此事件期间保留

public SPWorkflowTaskProperties onTaskChanged1_AfterProperties = new Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties();
string field_value=onTaskChanged1_AfterProperties.ExtendedProperties["ExtendedPropertyField"].ToString();

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

public SPWorkflowTaskProperties onTaskChanged1_AfterProperties = new Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties();
string field_value=onTaskChanged1_AfterProperties.ExtendedProperties["ExtendedPropertyField"].ToString();

field_value should not be null.

Thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文