Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Assuming, you have a shell script as a member of a job chain. You want to check, wether whether the call of the script is running after a suspend, that meansis, the last call ended with an error.

...

Code Block
 function spooler_process_before()\{
    var order = spooler_task.order;  
    if (order.params.value("suspend") == null)\{
       order.params.set_var("suspend","false");
    \}
   
    return true;
  \}

Checking the Exit-Code. If not zero set the order parameter "suspend" to true

Code Block
 function spooler_process_before()\{
    var order = spooler_task.order;
    if (order.params.value("suspend") == null)\{
       order.params.set_var("suspend","false");
    \}	
    return true;
  \}

Then you have the environment variable will be accessible in your script

...