AnsweredAssumed Answered

Process Unix return codes for conditional processing

Question asked by JohnA_1883 on Sep 21, 2014
Latest reply on Sep 22, 2014 by JohnA_1883
Hi All,

I am pretty new to UC4, so forgive me if this has an obvious answer. We are on One Automation V9. 

I have a process flow, where I want to go one path if a unix process returns a certain value and a different path for another value. 

I have set up my process to return 105, and 205, with the next job/workflow executing or skipping depending on this value (looking for Ended USER_100_200 and USER_201_299 or skip). These seems to be working fine.

However, my problem lies when there is an error in the process. My definition for OK is anything greater than or equal to 300. But, when I return anything from the Unix process above 299, UC4 changes the return code to something less than 300. It varies depending on the number I return. I have tried numbers in the 300's. 400's, 500's and even the system return codes in the 1800's and 1900's.

I have a simple Unix script in my process tab where I have been testing hard coded returns (e.g. return 305). 

Does anyone know what I am missing here? Have I gone about it completely wrong?

Thanks!

Outcomes