Page History
...
Display feature availability | ||
---|---|---|
|
Display feature availability | ||
---|---|---|
|
...
- 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 checkbox provided with each argument has to be selected the argument is to be added to to add the arguments of to the CheckHistoryJob templatejob.
When hitting the Submit button the wizard adds the required selected arguments to the job which should can look like this:
The job arguments can be specified:
...
Anchor | ||||
---|---|---|---|---|
|
The CheckHistoryJob CheckLicenseJob template returns the following variables:
Return Variable | Data Type | Purpose | Example |
---|---|---|---|
returnCode | number | Signals the license check result:
| |
subject | string | The subject for an e-mail that can be send from a subsequent job:
| |
body | string | The body for an e-mail that can be send from a subsequent job. The | .. Licence tpye: COMMERCIAL_VALID
.. license valid: true
.. License valid from: Wed May 05 12:22:41 GMT 2021
.. License valid to: Mon May 04 12:22:41 GMT 2026 |
...
The CheckLicenseJob template can be used to implement a workflow to alert about license expiration:
- Jobs based on the CheckHistoryJob CheckLicenseJob template do not fail if the underlying query does not return resultscheck proves an expired license.
- Instead, the CheckHistoryJob CheckLicenseJob template provides Return Variables that can be inspected to determine further execution of jobs in a workflow.
- JS7 offers the JS7 - If Instruction to check the values of Return Variables and to decide what instructions to execute next.
Download (upload .json): pduCheckLicenseJITL.workflow.json
Explanation:
...
The workflow implements
- The license check from its first job,
- followed by an If Instruction that checks the returnCode variable to determine if an e-mail should be send,
- finally will send an e-mail if return code 2 or 3 indicate license expiration.
...
Further Resources
...