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.2K All Categories
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 262 Administration
- 212 Portal
- 494 General Q & A
- 698 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 80 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 92 Lunch And Learn Questions