Page History
...
The Job Resource can be configured with the Arguments tab like this:
- an An argument with the name
businessDate
is introduced that holds a business date value that later on will be updated automatically.
...
- An environment variable with the name
BUSINESS_DATE
is using the value of the$businessDate
argument. - The environment variable is available for any jobs that are assigned this Job Resource
Then deploy the above Job Resource.
...
- For jobs executed with Unix Agents the environment variable is available from its name, e.g.
$BUSINESS_DATE
. - For jobs executed with Windows Agents the environment variable is available from the syntax
%BUSINESS_DATE%
.
Job Resources can be assigned at workflow level to be available for all jobs in a workflow and they can be assigned at job level. The same Job Resource is used for Unix and Windows platforms.
Job for Unix
Download for Unix: pduVariableBusinessDateGet.workflow.json
...
- The JS7 PowerShell Module is a wrapper for the JS7 - REST Web Service API.
- To install the JS7 PowerShell Module see PowerShell Command Line Interface 2.0 - Introduction
- Consider use of the shebang
#!/usr/bin/env pwsh
in first line of the job script that assigns PowerShell as the shell for the job script.
- The JS7 REST Web Service API can be used with any other scripting language such as Perl, Python, Ruby etc.
- The PowerShell cmdlets are available from source code, see https://github.com/sos-berlin/js7-cli-powershell, and can be used to identify the parameterization of REST requests.
- The PowerShell cmdlets are available from source code, see https://github.com/sos-berlin/js7-cli-powershell, and can be used to identify the parameterization of REST requests.
The job performs the following operations:
...
Overview
Content Tools