Logging for exception with no handling?
Comments
-
[font=Calibri, sans-serif]A very good development practice is to catch an exception, and record essential notes using a Log Step. Suppose an exception has been thrown within our application, and we have neglected to catch or handle the exception, will the Decisions system record that exception in the log (or somewhere else) by default?[/font]
-
Hello,
This depends on how your flow is set up. If this flow is persistent (for example has a process folder) then when you run it, the folders state will change to exception. You will be able to see that the state has changes if you go into the parent folder that houses the process folder and check the state. Below is an example of a flow with persistence:[img]https://lh3.googleusercontent.com/ApiFfP7GM3T8v-r7BNuWdn_IwHN8qhTWfEIhomusKcARPXv0ccwb2z-T6nabjsoNYz47UK83nSSIQYwjuKzzlOHFxvCmgBODzxiyXU_-ZRzcYr5HlUQ7fg-S8tuI7F_yMvIocpir[/img]
If this is not the case, the flow will run and it will silently fail. The error will be logged, but there will be no way to find the log with this particular flows tracking ID. Below is an example of a flow that does not have persistence:
[img]https://lh4.googleusercontent.com/wURUqjfv5ST5kdZlumkJmgnqq8yBrSjOEJ_grHi5s3-goBRYUkpLOcMd8HW_SA8DKdgjmpNOLEPUwoSOMHqAVBAmFK1FNzkVNuxxOAzhEYzxIAPH_PnkXNelFw9I-FDWXyVKyG-m[/img]
Let me know if you have any more questions.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 112 Rules
- 282 Administration
- 216 Portal
- 501 General Q & A
- 719 Forms
- 353 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 189 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 71 Repository
- 233 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions