...
Returning a parameter an its value to an Order
Setting a parameter in an order (for instance parameter "name1" with the value "value1") and returning the parameter to the order so that the next job chain node uses the new value. This works using the API for PowerShell. The differences are shown below:
Code Block |
---|
# Example Shell: echo NAME1name1 = VALUE1value2 >> %SCHEDULER_RETURN_VALUES% # Example PowerShell: echo "NAME1 = VALUE1" >> $env:SCHEDULER_RETURN_VALUES $spooler_task.order().params().set_value( 'NAME1', 'VALUE1'"name1","value2") |
Exit Code Handling
The following example throws no error in a Shell job but it breaks at line 2 and ends in an error for a PowerShell job:
...