CRM 4.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):
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以更改异步操作的形式以显示消息字段,但不支持,请参阅下面的链接。支持的方法是进行高级搜索并包含此列。我现在将采用后一种方法。
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/