问题描述
我正在尝试在工作流的任何错误"事件附近设置一个单个电子邮件"节点,如以下屏幕截图所示:
I'm trying to setup a Single Email node off the "Any Error" event of a Workflow, as indicated in this screenshot:
我不清楚的是如何将异常信息(堆栈跟踪,消息等)放入要发送的电子邮件正文中.
What I'm unclear about, is how do I get the Exception info (Stack Trace, Message, etc) into the Body of the email to be sent.
请告知.
推荐答案
Flowgear不提供堆栈跟踪,但是您可以将错误消息注入到电子邮件中.这是一个示例:
Flowgear doesn't provide the stack trace but you can inject the error message into an email. Here's an example:
出于完整性考虑,我还应该补充说,还有一些特殊的附加字段可用-请参见 http ://developers.flowgear.net/kb/Node:Variable_Bar#Reserved_Variables .
For completeness, I should also add that there are some special additional fields available - see http://developers.flowgear.net/kb/Node:Variable_Bar#Reserved_Variables.
以下是使用它们的示例:
Here's an example that uses them:
这篇关于Flowgear如何发送“任何错误"消息?通过电子邮件发送工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!