CRM 4.0工作流程活动错误消息反馈给用户

发布于 2024-09-19 08:25:05 字数 443 浏览 3 评论 0原文

是否可以覆盖 CRM 4.0 中工作流程失败时出现的默认错误消息?是否建议不要这样做?对于远程非技术用户来说,这似乎是读取任何自定义工作流活动抛出的简单错误消息的最佳位置。我想这个的代码扩展点是重写 Activity 基类的 HandleFault 方法。

protected override ActivityExecutionStatus HandleFault(ActivityExecutionContext executionContext, Exception exception)
{            
    return base.HandleFault(executionContext, exception);
}

这是默认的(又名“总是在那里但没有人读它”文本): 替代文字

Is it possible to override the default error message in CRM 4.0 that occurs if a workflow fails? Is it recommended against doing so? This seems like the best spot for a remote, non-technical user to read a simple error message that any custom workflow activity has thrown. I would imagine the code extension point for this is overriding the HandleFault method of the Activity base class.

protected override ActivityExecutionStatus HandleFault(ActivityExecutionContext executionContext, Exception exception)
{            
    return base.HandleFault(executionContext, exception);
}

Here is the default (aka the "always-there-but-no-one-reads-it" text):
alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

灰色世界里的红玫瑰 2024-09-26 08:25:05

可以更改异步操作的形式以显示消息字段,但不支持,请参阅下面的链接。支持的方法是进行高级搜索并包含此列。我现在将采用后一种方法。

http://nishantrana .wordpress.com/2010/05/04/getting-the-error-messages-for-custom-workflow-activity/

It is possible, yet not supported, to change the form of asyncoperation to show the message field, see link below. A supported way is to do an advanced search and include this column. I will take the latter approach for now.

http://nishantrana.wordpress.com/2010/05/04/getting-the-error-messages-for-custom-workflow-activity/

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