cancel
Showing results for 
Search instead for 
Did you mean: 

how count nr of "error" on step and adapt the action

Former Member
0 Kudos

Hello,

I don’t find a working solution to setup a chain where we need to act when error occurs.

This chain has 8 steps. And we can consider that we have 4 blocks of 2 steps.

Depend on what step in a block ends with error the next action should be different.

Below a summary table where have been described the required actions :

  • 1/ means step failed the 1st time
  • 2/ means step failed the 2nd time

Depend if 1/ or 2/ the next action should be different.

Any idea how design these conditions ?


Kind regards,

Delphine

Accepted Solutions (1)

Accepted Solutions (1)

h_carpenter
Active Contributor
0 Kudos

Hi Delphine,

I would create five job chains, one main job chain that calls the other four, the four with the following conditions:

Step 1 - precondition: =stepIterations < 3

Step 1 - Status Handler - On Error: Restart Step

Step 2 - precondition: =stepIterations < 3

Step 2 - Status Handler - On Error: Goto Step 1

On the parent chain, for each step, you use

-precondition: stepIterations < 2

-Status Handler - On Error goto <next step>

See

http://server:port/scheduler/help/user_guide/definitions/job_chains/preconditions.html

http://server:port/scheduler/help/user_guide/definitions/job_chains/job_chain_step.html

and

http://server:port/scheduler/help/user_guide/definitions/job_definitions/restart_behavior.html

for more information.

Regards,

HP

Former Member
0 Kudos

Great !

it's working properly ... it's wonderfull .

thanks a lot for your help & collaboration.

Kind regards,

Delphine

ps: I was on the goed way ..  only not aware about the implicite object "stepIterations" .

Answers (0)