We do have a same scenario to make a auto restart of the Workflows with out manual intervention and below is the Screen shot which i am using in my One Automation 12.0.1 version.Can you help me out here if i am wrong at some point?
I strongly recommend testing postcondition logic. In this case you could build a test-job that always fails (I like to run the DOS command "EXIT 1"), wrap a workflow around it with your postcondition rule, and execute it to see what happens.
Thanks Pete,it's working fine now.
Can we have your advice/Suggestion how we can over come this Situation.
We are having Pre-condition check where it will checks for one of the handshake condition if it is not met then the Workflow will fail Automatically So, we have asked Developers to add a return code in Unix Script and planned to add a Post condition to my Workflow to check return Code and make the Auto restart of workflow which checking that return Code they developed the return code as 10 in unix Shell script when i kept over Same in my One Automation the Workflow is failing with return Code as '01'.
Can you please help us.
The PostCondition rule does not execute if the PreCondition rule causes the task to SKIP. I don't know what you are doing in your PreCondition, but perhaps you could re-engineer it to occur in the top of the Process script instead of the PreCondition?
I didn't kept any Precondition for it.
The below is my question i am having now how to achieve it from One Automation.
We came to know as there is an issue related to Mobile Handshake which is getting failed on daily basis on most of the days. To overcome this one we are planning to create a Post Condition from One Automation itself to make a restart of the Workflow Automatically without any manual intervention from Prod ops and to overcome this one in One Automation instead of going with Unix Script and having the Sleep Mode option. We required a Specific return code from Unix script which returns if the Workflow is failed due to the Handshake because if we keep the Condition as <>0 at that point of time if the Workflow is failed due to any Server issues or table drop issues also it will be Auto restarted which is not the ideal case to run any Workflow.So,we required your help in setting an Return code in Unix Script where we can have a Specific Code apart from 0 and 01 which were related to Success and failure of any Workflows .If we have that return code Specific to Handshake then we can have it in One Automation and make an Auto restart Condition.
For this our developers created a Return code in Unix Script as 10 if it fails due to handshake but in one Automation the job is failing and Still it is returning as 01 code where i came to know that it will return same as failure.Now,i required to have the Auto restart if it fails for Handshake condition for which it return return code in Unix script and i want to get Automation restart at code only not for other issues for that Workflow.Can i know whether do i need to keep anything in Process tab for the Unix job?
Can i have your Suggestions ?
I mostly do Windows, so I am not the best resource for Unix behavioral issues.
If I understand you correctly, you have an application that is setting RC=0010, but the UC4/Unix agent sees the failure as RC=0001. I would be trying to figure out why. There are many possibilities.
Maybe the application is setting it back to RC=0001 before it finishes execution?
Maybe you have another process script instruction executing after the application that sets it back to RC=0001?
Maybe you have the OutputScan feature turned on and it is setting RC=0001?
Maybe this is a normal behavior of the UC4/Unix agent?
I hope someone with more Unix experience could chime in here?
Thanks for your response and it was solved out as we found out there is Some issue with the unix Frame Work it self and now it got resolved .
I have a bit unix experience but I am not sure if I understand this crorrectly...
As far as I understood your handshake function should throw a specific Return code <> 0 and 1 if it fails.
But it does not...
how is your job - and specially the exit funtion for setting the RC set up?
which RC do you get from the agent?
which version of automic & linux do you use?
which RC do you get from the agent?--earlier only 01 now it got fixed by the Script
which version of automic & linux do you use? Automic 12.0.1
Retrieving data ...