License check
Earmark registers itself with the licensing module that comes with it every time the application server starts, and after each license refresh it reads the license answer and records Earmark's verdict (Entitled, Grace period or Lapsed) in every company on Earmark > Setup > License status. The verdict shows a tile, a line on the internal copy of a claim statement and a business event; separately, on production, the license's block date stops new deals and claims and their approvals. This page is for the System administrator who looks after licensing, and for the Accounting manager and Earmark auditor who read the status.
Runs: by itself, at every application server start (registration) and after every license refresh, a daily batch job that the licensing module creates; on demand with Re-check now on License status. You schedule nothing. Set up by: nobody; there is nothing to enter. Watched by: System administrator (the Accounting manager and Earmark auditor can view the status).
Why it exists
Earmark is licensed through its licensing module, which talks to Magicite's licensing service. Earmark keeps its own copy of the answer, per company, so that the pages that show the license state (the License status page, the License: grace or lapsed tile and the claim statement's internal copy) read one stored row instead of asking the licensing service each time.
The check is built so that a network problem is never mistaken for a lapsed license. When there is no answer, the verdict that was last recorded stands. The verdict itself never stops anything; the only thing that refuses work is the block date, and only on production.
When it runs
| Trigger | What happens |
|---|---|
| The application server starts | Earmark registers the product Earmark (Magicite Earmark) with the licensing module. Nothing is recorded on License status. If registration fails, the error is ignored and the next start tries again. |
| The one-time license check-in after startup | The licensing module checks in with the licensing service. Earmark does not record anything after this run; its verdict follows at the next license refresh or Re-check now. |
| The daily license refresh batch job | After it finishes, Earmark records its verdict in every company. When the application server starts and no such job is waiting, the licensing module creates one, with its first run a day later. |
| License refresh run by hand, from System administration > Setup > Magicite > License refresh | The same as the daily run. |
| Re-check now on Earmark > Setup > License status | Earmark records its verdict in the current company only. It reads the answer already held and never waits for the licensing service. |
To check straight away, run System administration > Setup > Magicite > License refresh by hand: it checks in, and Earmark then records the answer in every company. Re-check now is quicker but only copies the answer already held into the current company. Each application server re-reads that answer at most every five minutes, so a Re-check now served by another application server in the minutes after a refresh can still record the answer from before it.
Do not schedule the license jobs yourself. The licensing module creates and keeps them. There is no recurrence to choose.
Settings
| Setting | Where | Default | Effect |
|---|---|---|---|
| None in Earmark | Earmark > Setup > Earmark parameters, Licensing tab | The tab holds only an explanation. Earmark has no license key, activation screen or license setting. | |
| Licensing settings | System administration > Setup > Magicite > License parameters | As installed | The licensing connection and the Usage telemetry enabled setting. They need no values for normal use. |
| Publish deal events | Earmark parameters, Events tab | Yes | Also switches the License state changed business event on or off for the company. |
| License state changed activation | System administration > Setup > Business events > Business events catalog | Not active | The event is sent only once it is activated, like every business event. |
What it does
Each check, whether after a license refresh (every company) or from Re-check now (this company):
-
Reads the stored license status of the product Earmark.
-
Turns that status into Earmark's verdict:
License status Earmark verdict Valid Entitled In grace Grace period Expired, Invalid, No license, Suspended or revoked Lapsed Unlicensed, Offline exceeded, or no answer Not reached: no new verdict Unlicensed (a new installation, a failed registration, an unreachable service) and Offline exceeded mean "we do not know", so they never read as a lapse.
-
Works out Grace period ends: the license's expiry date plus its grace days.
-
Records the answer on License status:
Answer No row yet Row exists A verdict Creates the row: the verdict, Verdict source Live check, Last checked and Last successful check both now Updates the verdict and Grace period ends, sets Live check and both times Not reached Writes nothing; Earmark reads as Entitled Keeps the verdict, sets Verdict source Cached and Last checked to now; Last successful check stays -
If the verdict moved, sends the License state changed business event after the row is saved. A first row that reads Grace period or Lapsed counts as a move from Entitled. Each company whose row moved sends its own event.
-
Re-check now then tells you what happened (see When it fails).
What the verdict does. While the current company's verdict is Grace period or Lapsed:
- the License: grace or lapsed tile appears on Earmark > Workspaces > Earmark configuration;
- the internal copy of a claim statement carries "INTERNAL COPY - Earmark license in grace period. Contact Magicite to renew." or "INTERNAL COPY - Earmark license has lapsed. Contact Magicite to renew." The customer's copy never does.
That is all. A verdict refuses nothing.
The block date. The license gets a block date when a license problem lasts (for example, an expired license, or no license ever arriving). Earmark reads it at the moment of each act; it is not part of Earmark's stored row.
- Administrators see "Earmark's license status is %1. From %2, on production, new deals and claims cannot be created, and deals, amendments and claims cannot be approved. ..." when they open License status, Earmark parameters or the Earmark configuration workspace, from the day a block date is set; once the date has passed the warning reads "Earmark's license status is %1, and it has reached its block date on this production environment. ...". %1 is the license status, for example No license. The License: grace or lapsed tile also appears while a block date is set, even if the verdict still reads Entitled.
- Other users see a licensing warning once per session on the Earmark and Deal control workspaces and on the All deals and All claims lists (and the other lists those pages open), during the last 14 days before the block date and after it: "Magicite licensing: the license for product '%1' is %2. On %3 (UTC) operations that need this license stop. Contact your administrator."
- On production, from the block date, Earmark refuses creating or copying a deal, generating a claim (by hand, by the claim sweep or by the vendor settlement run), and approving a deal, an amendment or any claim not yet approved, with "Earmark's license has reached its block date on this production environment. New deals and claims cannot be created (the deal and claim migration loads are not refused), and deals, amendments and claims cannot be approved. ..." Every other environment type only warns.
- The vendor settlement run reports the refusal quietly: its preview ignores the block and still lists what it would raise, and a real run at the block raises no claim yet logs Completed with 0 claims. See Vendor settlement run.
The dates for each kind of license problem are in Check the license status.
Before it can run
- The licensing module is installed with Earmark; Earmark cannot be installed without it.
- The environment is registered with the licensing service. This happens by itself. Until an answer is held, Re-check now records no verdict (see When it fails).
- Re-check now needs the Maintain Earmark licensing duty, which ships on the System administrator role (security reference).
- License refresh by hand needs the System administrator role.
- No Earmark module needs to be on. License status and Re-check now work while every module is off.
What goes in and what comes out
| In | Out |
|---|---|
| The stored license status, expiry date and grace days for Earmark | One License status row per company, also readable through the read-only Earmark license states entity (/data/MGCEarmarkLicenseStates, see the entity reference) |
| The License state changed business event, when the verdict moves | |
| The tile and the statement line described above |
No timeline row is written.
Watching it
- License status (Earmark > Setup > License status): Product code, License verdict, Verdict source, Grace period ends, Last checked and Last successful check. Last checked moving on while Last successful check stays put means there has been no answer since then, and the verdict is the last one known (Cached).
- The License: grace or lapsed tile on the Earmark configuration workspace.
- The license refresh job on System administration > Inquiries > Batch jobs: its history tells you when Earmark last checked.
- The License state changed business event, if you activated it: its payload carries the product code, verdict, source, grace end date and last successful check time. See Business events.
- The execution exceptions workbench (Earmark > Inquiries and reports > Earmark execution exceptions) for a License state write or License Pulse emit row (below).
When it fails
| What you see | What it is | What to do |
|---|---|---|
| "The licensing service has no verdict for %1 yet, so nothing was recorded. Earmark reads as entitled until a check succeeds. ..." | Not a failure. There is no answer yet, usually on a new installation. | Wait for the next daily license refresh, or run License refresh by hand, then Re-check now again. |
| The licensing service could not be reached for %1: "The last-known verdict stands." | No verdict is held right now (the status is Unlicensed or Offline exceeded, or there was no answer). Re-check now never contacts the licensing service itself, whatever the message says. The row is marked Cached. | Nothing, unless it persists; then run License refresh by hand and check that the environment can reach the licensing service over outbound HTTPS. |
| The environment has not been registered (%1): "nothing was checked." | Despite its wording, a failure to save the License status row: Earmark always has its product code, so this message appears only together with a License state write row. | As for that row, below. |
| A License state write row on the workbench | A failure: the row could not be saved. | Fix the cause, switch to the row's Company, and click Retry selected, which runs the check again in the company you are in. |
| A License Pulse emit row on the workbench | A failure: the business event could not be sent. The row itself was saved. | Switch to the row's Company and click Retry selected, which sends that company's current state again. |
A verdict is not a failure. Grace period and Lapsed are statuses: they never create a workbench row. A refusal at the block date is a verdict on the act: the deal, amendment or claim stays where it was, with its work item if it had one, and goes through once the license is restored.
If the licensing module itself has a fault when Earmark asks about the block date, Earmark lets the act through rather than refusing it.
A re-run is always safe. A check only records the answer held now, so running it twice gives the same row, and the business event is sent only when the verdict moves.
Effects on the rest of Earmark
- The verdict stops nothing. Pricing, accruals, claims and settlement do not look at it.
- The block date stops new work on production only. At the block date the refusals listed above apply; existing deals keep pricing and accruing, approved claims keep posting and settling, and ending, rejecting, recalling and reversing stay open. A deal loaded through the deal migration entity is exempt, and the claim migration entity has no license check: migration loads are not refused, and the block message says so.
- A workflow that approves automatically, with no person acting on a work item, has no work item to wait on: at the block date it ends and the deal or claim stays Pending approval, and an amendment's workflow stops with an error. Once the license is restored, recall the deal or claim and submit it again. For an amendment, cancel its stopped workflow in the standard workflow history, which closes the amendment as Rejected, then raise it again. See Approval workflows.
- Per company. Each company has its own row, and the tile and the statement line read the current company's. Re-check now updates only the company you are in.
Related
- Check the license status
- Installation guide, section 5.1, License
- Role goals: Administrator: I want to see the license status · Administrator: I want to refresh the license status now · Administrator: I want to activate the Earmark business events · Earmark auditor: I want to check the license status · Implementation consultant: I want to confirm the license before go-live
- What the block means for each role: Administrator: I want to restore work after a license block · Deal manager · Deal approver · Claims approver · Accounts receivable clerk · Accounts payable clerk · Accountant · Order taker · Integration developer
- Forms guide: License status
- Security reference · Entity reference
- Other operations pages: Business events · Approval workflows · Claim statements · Background steps and retry