Page History
...
Display feature availability | ||
---|---|---|
|
Display feature availability | ||
---|---|---|
|
...
You can use the job wizard like this:
Explanation:
...
In a next step invoke the job wizard that you find in the upper right corner of the job property editor. The wizard brings up the following popup window:
Explanation:
- From the list of available job templates select the CheckLicenseJob.
Then hit the Next button to make the job wizard display available arguments:
Explanation:
- Optional Arguments
validity_days
: Specifies the number of days for which the license should be valid.- The job will terminate with return code 3 if the license will expire within the given number of days.
- The job will terminate with return code 2 if the license is expired.
- Note that the the check box provided with each argument has to be selected the argument is to be added to the arguments of the CheckHistoryJob template.
When hitting the Submit button the wizard adds the required arguments to the job which should look like this:
The job arguments can be specified:
...
Download (upload .json): pdwCheckHistorypduCheckLicenseJITL.workflow.json
Explanation:
- Arguments of the CheckHistoryJob template include to specify the
query
andworkflow
that is looked up in the execution history.The query isCompletedSuccessful checks if the indicated workflow was successfully executed during the current day.
Explanation:
- CheckLicense job checks the validity of the license and sets the according values for subject and body.
- An email is send
- The JS7 - If Instruction is used to check the
$returnValue
return variable that carries- the value 0 if the query of the CheckHistoryJob template returns one or more hits.
- the value 1 if the query of the CheckHistoryJob template returns no hits.
- Alternative solutions include to check the value of the
$js7CheckHistoryResult
return variable for a Boolean value that indicates if the query did return any hits:$js7CheckHistoryResult == true
$js7CheckHistoryResult == false
- The above example executes a successor job based on the result of the CheckHistoryJob. Such jobs have access to any Return Variables:If the successor job is a Shell job thenReturn Variables can be mapped to environment variables like this:
the job script can make use of environment variables like this:
If the successor job is a JVM job then Return Variables can be accessed directly.
Further Resources
...
Overview
Content Tools