View previous topic :: View next topic |
Author |
Message |
melvin Site Admin
Joined: 25 May 2006 Posts: 635 Location: Santa Barbara, california
|
Posted: Mon Sep 16, 2013 2:59 pm Post subject: Get task failure status via commandline |
|
|
We are using the API class of UserVariable to set our own variable as below:
com.hitek.engine.mods.var.UserVariable set MTRS_ERT_YYYY-MM-DD sPLUS1
Would you have a similar API which captures the event/trigger when a task failed? |
|
Back to top |
|
 |
melvin Site Admin
Joined: 25 May 2006 Posts: 635 Location: Santa Barbara, california
|
Posted: Mon Sep 16, 2013 3:00 pm Post subject: |
|
|
There is no event or trigger when a task fails. But an exit code > 0 is set. You can use the GetVar function from the Commandline module to get the exit code ($%taskTitle::ExitCode%$) and check if it is > 0. |
|
Back to top |
|
 |
|