Versions Compared

Key

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

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

  • A job is executed as a taks and a task could run for many orders.
  • Each order will

...

 

Code Block
languagejs
 function spooler_process_after( spooler_process_result ) {
    spooler_log.info( "order id is " + spooler_task.order().id ) ;   // the order object is available
    return spooler_process_result;
 }

It is NOT available in spooler_task_after(), because no order is running for the current task anymoreany more.

Code Block
languagejs
 function spooler_task_after() {
    if ( spooler_task.order() == null ) {
      spooler_log.info( "spooler_task.order is null" );           // the order object is NOT available
    }
 }

...