Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
6 subscribers
Views
3731 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi, I have a process which loops an array "n" no. of times.
phanibabuk
over 9 years ago
Hi,
I have a process which loops an array "n" no. of times.
If the loop breaks for any reason, the process breaks.
If I fix the issue for the broken index in the loop and retry, will the loop continue to execute from the next index?
What is a good practice of error handling around this?
OriginalPostID-171722
OriginalPostID-171722
Discussion posts and replies are publicly visible
0
narasimhaadityac
A Score Level 2
over 9 years ago
Hi Phani, when you mention "fix the issue for the broken index in the loop and retry", if you are planning to edit the process model, restart the broken node? as per my understanding, yes then it will proceed from the next index.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
Good practice would be to handle the error in the process/loop, so that the process does not break if an error is thrown. Additionally, depending on your requirement, you may need to validate the data being passed in to the process/loop before it starts to prevent errors occurring.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 9 years ago
Hi Ryan,
How can we handle the error in the process/loop.
What error handling mechanisms are avialable.
Could you please give more inputs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
janakik
over 9 years ago
You can make use of Exceptions to handle the errors.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
This will depend on what you are doing. For example, several smart services have an error code output; if the output value is populated you can take a different path in your process. If this doesn't help, you may need a rule that can validate the data, and then handle any errors in the data that are detected by the rule. For more info you can look at other questions on Forum regarding this topic:
forum.appian.com/.../e-170192
forum.appian.com/.../e-155795
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel