Rerunning the same action from the existing action
I have an action. based on some size of the log files in unix app server i want to stop the current action and rerun the whole action starting from the first.
please suggest me an approach.
I have 2 ways in mind.
1)Action1: once the size is more than expected, i will exitAction with status 1. now the control goes to action 0. In action 0 I will write an IF condition to check if the status is exited with 1, if yes then i will call action1 agin.
2) The second approach is same except that instead of passing the control to action0 i will call
i) another action say action 3 which will delete the tasks done by action 1
ii) Action 3 will call Action1 again.