How to use the exception handler
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
How to use the exception handler
I want to use exception handler in a sequence in such a way that sequence should run three times in case it aborts and after 3rd time it should stop
I have checked the two options
add checkpoints so the sequence is restartable ..
Automaticaly handle activities that fail..
I have checked the two options
add checkpoints so the sequence is restartable ..
Automaticaly handle activities that fail..
Re: How to use the exception handler
Can't be done with any stage inside the sequence. That's something your external job control will need to handle.tanaya.deshpande@tieto.co wrote:sequence should run three times in case it aborts and after 3rd time it should stop
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
Now... if you actually mean you want to try running a Job Activity three times in case the job (not the Sequence) aborts, that is perfectly feasible. Still won't need an Exception Handler for that, the Start/End Loop stages will get you what you need.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
Have you used the Loop stages before? This would be a pretty simple design - run the job inside the Loop stages, tell it to loop three times and use triggers to check the job's completion status to decide what to do each iteration.
Job ran ok? Exit the loop 'early' by branching to a stage after the End Loop stage. Use a Sequencer for a 'do nothing' stage if that's appropriate.
Job aborted? Continue the loop.
Job aborted for the 3rd time? The loop will automatically end at that point, branch from the End Loop stage to whatever stage would be appropriate in that case. As noted, perhaps a Terminator if you want to abort the Sequence in that case.
Job ran ok? Exit the loop 'early' by branching to a stage after the End Loop stage. Use a Sequencer for a 'do nothing' stage if that's appropriate.
Job aborted? Continue the loop.
Job aborted for the 3rd time? The loop will automatically end at that point, branch from the End Loop stage to whatever stage would be appropriate in that case. As noted, perhaps a Terminator if you want to abort the Sequence in that case.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
Thanks Chulett for your reply..I still have one doubt
Here are the steps the sequence will run..
1) If Job activity success (don't enter the loop) exit loop..
2) if the job activity fails ..enter loop
iteration 1:
if Job activity success ..exit loop
3) If job activity fails now ...enter loop
now will the iteration be 2nd or again the first iteration will start????
I am asking u this question because I am not able to test what I am doubting
Here are the steps the sequence will run..
1) If Job activity success (don't enter the loop) exit loop..
2) if the job activity fails ..enter loop
iteration 1:
if Job activity success ..exit loop
3) If job activity fails now ...enter loop
now will the iteration be 2nd or again the first iteration will start????
I am asking u this question because I am not able to test what I am doubting
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
I was succesful in executing that code when there was one job activity
I joined start and endloop to the activity and in the trigger of that activity I gave condition failed ...
But now if I have more than 1 job activity and I want to run the loop when any of the activity fails then how to do it ???
I joined start and endloop to the activity and in the trigger of that activity I gave condition failed ...
But now if I have more than 1 job activity and I want to run the loop when any of the activity fails then how to do it ???
-
- Participant
- Posts: 94
- Joined: Sun Jul 18, 2010 11:35 pm
You certain you want to do that - rerun all of them if any one of them fails? If so, seems to me it would be custom triggers checking all results and deciding where to go, out or back around. Probably in a Nested Condition stage.tanaya.deshpande@tieto.co wrote:But now if I have more than 1 job activity and I want to run the loop when any of the activity fails then how to do it ???
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers