I have to update the data in the database after each activity. What is the best practice for updating data. E.g
The following code is in the sequence Process
Try{
Type into activity
Type into activity
Click activity
Try{
DB update
}
catch Exception {
new Exception("Error db update"+exception.Message)
}
Type into activity
Type into activity
Click activity
Try{
DB update
}
catch Exception {
new Exception("Error db update"+exception.Message)
}
}
catch Exception {
Log Message Exception
}
finally {
if Exception
{
throw
}
else
{
Success
}
}