 |
hiteksoftware.com User discussion forum
|
| View previous topic :: View next topic |
| Author |
Message |
JamiB1979
Joined: 16 Aug 2007 Posts: 4 Location: Jacksonville, IL, USA
|
Posted: Wed Aug 22, 2007 12:30 pm Post subject: Return Codes |
|
|
Is there any way in Automize that I can tell the prorgam what specific return codes in my programs mean? Here is a couple examples:
If program 1 has a return code of 4 it has failed and needs to halt the chain it's in and email someone, but if that same program returns a code 5 that it failed it needs to email someone and then just continue with the chain.
Second Example: Program 2 returns a code of 4 which means it failed and needs to run another program, after successful completion email someone.
Whereas return code 6 may mean task failed, run next program which fixes it and moves forward with no email.
I guess what I am trying to ask is, is there any way Automize can do two different actions on the same program based on return codes that are both > 0?
Thanks for the help! Your program is quite handy!
Jami Benson  |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Aug 22, 2007 4:37 pm Post subject: |
|
|
Consider first example:
1) I assume this program is run via command / wincommand task. Assume this is Step 1. The first exit code condition can be checked in the chain step 1 itself, i.e. if exit code == 4, go to step X (email somebody), where X is last step in chain.
2) Create a variable monitor task and check if the exit code of the program ==5. Run this variable monitor as Step 2 in the chain. If exit code = 5, then this variable monitor exit code = -100. In this case, go to Step X-1, (email somebody). Make sure that step X-1 has the condition: Chain always stops at this step. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|