Page History
...
The JITL CheckLicenseJob template can be used to monitor if the automate monitoring of the JS7 - License is about to expire or is expired expiration.
- The job template makes use of the JS7 - REST Web Service API to perform JS7 - Order State Transitions for check expiration date similar to the JOC Cockpit GUI, see JS7 - How to manage License Expiration Warnings.
- The job template authenticates with the JS7 - REST Web Service API by use of user account/password and/or by use of a certificate, for details see JS7 - Authentication.
- For details about configuration items see JS7 - JITL Common Authentication.
...
- invoke the Wizard that is available from the job properties Job Properties tab in the Configuration view and select the JITL CheckLicenseJob and relevant arguments from the Wizard
...
- 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.
...
The Job Documentation including the full list of arguments can be found from: https://www.sos-berlin.com/doc/JS7-JITL/CheckHistoryJobCheckLicenseJob.xml
Anchor | ||||
---|---|---|---|---|
|
...
Name | Required | Default Value | Purpose |
---|---|---|---|
validity_date | yesno | n/a60 | Specifies ...the number of days for which the license should be valid. |
Anchor | ||||
---|---|---|---|---|
|
The CheckHistoryJob template returns the following variables:
Return Variable | Data Type | Purpose | Example |
---|
,,,
subject
Returns ...
body
Returns ...
Job Dependencies
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 |
Alert Workflow
The CheckLicenseJob template can be used to implement a workflow to alert about license expirationThe CheckHistoryJob template can be used to implement backward job dependencies:
- Jobs based on the CheckHistoryJob template do not fail if the underlying query does not return results.
- Instead, the CheckHistoryJob 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.
...