...
Code Block |
---|
Function spooler_init() \{ if ($spooler_log) \{ $spooler_log.info("This is spooler_init") $spooler_log.info("TaskID: "+$spooler_task.id) \} return $true \} Function spooler_open() \{ $spooler_log.info("This is spooler_open") return $true; \} Function spooler_process() \{ $taskId = $spooler_task.id $spooler_log.info("This is spooler_process, in task id "+$taskId) $order = $spooler_task.order if ($order) \{ $orderId = $order.id $spooler_log.info("processing order "+$orderId) return $true \} return $false; \} Function spooler_close() \{ $spooler_log.info("This is spooler_close") \} Function spooler_exit() \{ $spooler_log.info("This is spooler_exit") \} Function spooler_on_success() \{ $spooler_log.info("This is spooler_on_success") \} Function spooler_on_error() \{ $spooler_log.info("This is spooler_on_error") \} |
...
Configuring a powershell pre-/postprocessor
Only one powershell pre-/postprocessor can be configured per job.
...