Exceptional Handling
Exceptional Handling
If any error comes during process, we need to handle to do some logging and display generic UI ,…etc.
Activity, at jump, in step end. When we are doing obj-open, if the step status fail we have to do something.
In the activity, if want to call connect rules like SOAP, REST and SQL etc, here also we can do exception handling using
jump to later step label, then we will do log message and property-set-messages methods. This exception handling is
after the completion of execution of connect-SOAP or any other rules. Then data will receive the error message on the
page. Then jump to later step and there we will use methods to display the methods. This is in activity for connectors.
That cannot be handling in the activity. In the connect rules, we can see error handling category, here you can see one
flow error handling in one OOTB flow “connection problem”.
In connect-SOAP, we can see error handling category. In connect-SQL, we can call this flow in error tab.
If the connector fails, connection problem flow will automatically get executed. [Connection fails means if you are trying
to make a connection, there is timeout or resource is not available, 300, 400 connection flow will automatically get
executed.
This flow is going to see the resource is available. If the resource is not available or any exception, your case will transfer
to work basket (incomplete connections) by using assignment shape “wait for retry”. You can give access of this
incomplete connections workbasket to some operators. They will take care of executing this task manually if required.
That assignment wait for retry contains one SLA which is Retry Connection. This will have the time interval, 30 sec for
GOAL time, 2 mins for deadline and 10 mins (3 times) for passed deadline. For every interval it will escalate and in
passed deadline it will escalate the passed deadline.
So when this case is moved to this work basket. If no one is touching this work object from work basket, it will escalate
action accordingly. In the escalation, it is calling an activity which retry connection. It will retry the connection again.
Like that it will try for five times. We can modify this changes also.
Nothing happens after the five times escalation, as an operator you will log in and go to work basket if you have an
access to work basket. You can perform either of two actions, one is resume problem (55% of likelyhood) and other
cancel the assignment (45% likelyhood). Which means by default this flow action(resume problem) will be executed
and display the submit button. When we click, it will restart the problem flow. The process is again. If you cancel
assignment, it will cancel the current assignment. The work object will be preceded to further process in action work
flow.
Like prpc provides the connection problem or autos retry process.
Like this, the connection problem flow will helpful to do exception handling in case of connectors.
If you want to write our own text files, you have to use a method called connect file. This connect file is going to create a
new file on the server path which you passed. Writing into your own documents (not log) you have to use the method
called connect file. Create text document and write your own text.
FAULTS TAB:
1. Fault code property: it is for single value text property which stores the value of the fault code returned in the
response.
2. Reason property: It can store the reason of the fault. This string holds the explanation about the faults code.
3. Details property: It contains the little info about the fault code.
We have two ways, connection problem flow and activity at the jump
When the Datapage completed its processing: After Datapage is loaded completely, you execute post load processing
and there we can do the execution. After Datapage is completely available in clipboard, this activity will run. We have a
facility to call an activity in post load processing. Here we can call an activity. In activity we can use jump.
During the loading the Datapage: When we are operating activity using Datapage as source rule, then we can do
exception in the activity and not in the post load processing.
In the methods, we have commit, rolleback and obj-save and cancel. These are used to handle the exceptions.
The log methods is write some details whatever that you provide here.