...
Code Block |
---|
# Example Shell: environment variable for task/order parameter myscript.cmd %SCHEDULER_PARAM_NAME1% # Example PowerShell solution 1: environment variable for task/order parameter myscript.cmd $env:SCHEDULER_PARAM_NAME1 # Example PowerShell solution 2: shorthand notation for task/order parameter myscript.cmd# Example PowerShell solution 2.1 myscript.cmd $spooler_params.get( "name1" ) # Example PowerShell solution 2.2 myscript.cmd $spooler_params.value( "name1" ) # Example PowerShell solution 2.3 myscript.cmd $spooler_params.items.name1 # Example PowerShell solution 2.4 - read all task/order parameters as Variable_set $variableSet = $spooler_params.getAll() # Example PowerShell solution 2.5 - read all task/order parameters as object $parametes = $spooler_params.item( "name1" )items # Example PowerShell solution 3: access task parameter myscript.cmd $spooler_task.params().value( "name1" ) # Example PowerShell solution 4: access order parameter myscript.cmd $spooler_task.order().params().value( "name1" ) |
...
Code Block |
---|
# Example Shell: echo name1 = value2 >> %SCHEDULER_RETURN_VALUES% # Example PowerShell solution 1: $spooler_task.order().params().set_value( "name1", "value2" ) # Example PowerShell solution 2: shorthand notation for task/order parameter $spooler_params.set( "name1", "value2" ) |
Error Handling
...