Automated processes
Everything Ballast does without someone filling in a page: the batch jobs, the work that happens when a record is saved, and the work that happens when the application starts. For each process this page gives its purpose, what starts it, how it is configured and scheduled, what it does, what it depends on, what it reads and writes, where it logs, how it fails, how to recover, and what else it affects.
It is written for administrators who run Ballast and for architects who need to know what runs on their batch servers. For the routines people follow (who checks what, and how often) see Operations. For the concepts behind publishing see the User guide. For the tables, services and business events named here see the Technical reference.
Contents
- At a glance
- The publish engine
- Publish now
- A publish scheduled through the service
- Version window expiry: revert or hold
- Retrying a publish exception
- Baseline and predecessor seeding
- The audit retention purge
- Draft-edit capture
- Direct-change capture
- Recording a Data management import
- License check-in and the license gate
- Help registration at startup
- The version approval workflow
- Recording approval decisions
- One-off maintenance operations
At a glance
| Process | Kind | Started by | Set up by you? | Where to see it |
|---|---|---|---|---|
| The publish engine | Batch job | Its recurrence, or someone running it | Yes. Ballast creates no schedule. | Ballast publish runs |
| Publish now | On demand | A user on a version page | No | Ballast publish runs |
| A publish scheduled through the service | One-time batch job | An integration calling schedulePublish | No | Batch jobs, then Ballast publish runs |
| Version window expiry | Part of every publish run | A version's To date passing | No | The run's Infolog, the Exceptions tab, the audit trail |
| Retrying a publish exception | On demand | A user on Ballast publish runs | No | A new publish run |
| Baseline and predecessor seeding | Automatic | Opening a version page, a publish run, creating a version | No | The version list, the audit trail |
| The audit retention purge | Batch job | Its recurrence, or someone running it | Yes. Ballast creates no schedule. | Its Infolog, a Retention cleaned event |
| Draft-edit capture | Data event | Saving a field on a version | No | Configuration audit |
| Direct-change capture | Data event | A write to a covered standard table | No (activate the business event to be alerted) | Configuration audit, the business event |
| Recording a Data management import | Data entity | An import or an OData write | No | Configuration audit |
| License check-in | Batch jobs (licensing module) | Application startup | No. The licensing module creates them. | Batch jobs, Ballast parameters |
| Help registration | Startup | Application startup | No | The Help icon on Ballast pages |
| The version approval workflow | Workflow | Submit on a version page, where the module approves through a workflow | Yes. A workflow configuration in each legal entity. | Ballast version approvals, the workflow history, the audit trail |
| Recording approval decisions | Automatic | An approval, rejection, cancellation or withdrawal of a version | No | Ballast approval reporting |
| One-off maintenance operations | On demand | An administrator, or an integration | No | The audit trail |
The publish engine
Purpose. Applies each module's effective version to the live parameter tables, on the date it takes effect. An Approve only marks a version as approved; nothing reaches the standard parameter pages until a publish run applies it. The engine is what makes a future-dated version take effect on its date without anyone signing in.
Trigger. Menu item Ballast publish engine, at System administration > Setup > Ballast publish engine. It is a standard batch-capable dialog: run it at once, or set a recurrence on its Run in the background tab. Ballast does not create the recurring job for you, so until someone does, versions with a future From date are not applied on their date. The same engine also runs inside Publish now, the publish service and Retry.
Configuration and scheduling.
| Setting | Where | Default | Notes |
|---|---|---|---|
| Bundle | The dialog | None | None publishes every module. The help text reads "The bundle to publish. Leave it empty to publish every bundle." |
| Force republish | The dialog | Off | "Publish the effective version even where it is already applied." Leave it off on the recurring job; see Force republish. |
| Recurrence, batch group | The Run in the background tab | None | Ballast sets no batch group. Daily is the usual recurrence; run it more often when changes must land within the day. Schedule it shortly after midnight in the companies' time zone if versions should take effect at the start of their From date. |
| A module's feature | Feature management, Ballast parameter versioning: … | On | A module whose feature is off is skipped: nothing is seeded, published or recorded for it. |
| Reminder lead time (days) | Ballast parameters, tab Reminders | 0 (off) | Before publishing each module in each company, the engine raises the Ballast version reminder business event for a version taking effect, or the version in force ending with no successor, within this many days; once per version and kind. A reminder that fails gives a warning in the run, never a failed publish. See Reminders before version dates. |
| Security | Privilege MGCBallastVersionActivate | In Ballast administrator and Ballast approver. |
"Today" is the company's date in its time zone. A version is effective when it is Approved, its From date is on or before today, and its To date is blank or on or after today. Where several qualify, the latest From date wins, and on a tie the newest version wins. The winner's Effective state shows Current.
What it does. One run, in order:
- Opens a run header on Ballast publish runs, outcome No changes until it finishes. Manual run is No when the batch server started the run, Yes otherwise. A batch run also records its batch job and its scheduled start, so you can see how late it started.
- Applies the license gate: a manual run in a blocked production environment stops here.
- Takes the modules in a fixed order: System, Accounts receivable, Accounts payable, General ledger, Procurement and sourcing, Inventory, Sales and marketing, Warehouse management, Commerce, Project management and accounting, Product information management, Fixed assets, Production control, Master planning. System and Product information management are handled once for the environment; every other module once in every non-virtual legal entity, whichever company the run was started from.
- In each company, seeds a baseline if the module has no version there yet, finds the effective version, and compares it with the applied-version registry, not with the live values.
- Where the registry already holds the effective version, and the run is not forced, does nothing and records nothing. Where only the baseline is effective, either adopts it (nothing applied yet) or holds (a real version was applied and has lapsed). Otherwise, writes the version's values to the live tables.
- After a write: updates the registry, records one Success line per table (or Skipped for a list the version holds no rows for), records a Published audit event per table, raises the Ballast version published business event, and checks whether the version was applied late or the previous one had lapsed.
- Rolls the lines up into the run outcome and writes the run's message: "… table(s) published, … skipped, … failed."
The decision for each company is drawn in How a publish run decides what to do, and the outcomes in Reading run outcomes.
How the live tables are written. A single-record parameter table (for example CustParameters) is updated field
by field from the version's snapshot, only where both the snapshot and the live record exist. A list table is
deleted and re-inserted from the version, so the version is the whole list; a list the version holds no rows for is
left alone rather than emptied (Single-value tables vs. list tables).
The Production control site rows are the exception: each row the version holds updates the live row for its site, or
is inserted for a new site, and then every live site row the version does not hold is deleted, with that site's
allowed status changes and scheduling rows. The company row is never deleted. The allowed status changes of each site
the version holds are then replaced with the version's, and the time units are replaced whole.
Each module's writes in one company are one database transaction. The run as a whole is not one transaction: one
company or module failing does not undo the others.
Depends on. A running batch service (for the scheduled job); the module's feature; the version and value tables;
the applied-version registry MGCBallastAppliedVersion; the license status, for manual runs only.
Reads and writes.
| Reads | Writes |
|---|---|
| The version tables and their value tables, the registry, Feature management, the legal entities, the live parameter tables | The live parameter tables; MGCBallastPublishRun and MGCBallastPublishRunLine; MGCBallastExecutionException; the registry; Published, Expired and Reminder sent audit events; baselines and their Version created events; the business events Ballast version published, Ballast version window ended and Ballast version reminder |
Logging and monitoring.
- Ballast publish runs (System administration > Setup > Ballast publish runs): one header per run with its
outcome, its message, Manual run, and its lines and exceptions. The history entities
BallastPublishRuns,BallastPublishRunLinesandBallastExecutionExceptionsexpose the same over OData. - The Infolog of the run: on screen for a run started by hand, in the batch job's log for a scheduled one. Two
warnings appear there and nowhere else:
- "Ballast: the effective … version for company '…' was applied … day(s) after its effective date (…). The governed publish proceeded." The version was applied after its From date: the job ran late, or the version was approved with a From date in the past. A Force republish of a version that took effect earlier repeats this warning; it is harmless there.
- The two window-ended warnings, under Version window expiry.
- The Ballast version published business event, once per module and company the run published.
- Health: the daily check is in SOP 3: Daily: check the publish runs.
Errors and recovery.
| What you see | Cause | What to do |
|---|---|---|
A Failed line reading (all tables in bundle), and an Open exception with reason code PublishFailed | Writing one module in one company failed. The module's writes in that company rolled back; the run carried on. The exception's Error message holds the end of the Infolog, or "Automatic publish failed for this target; see the infolog for detail." when there was none. | Read the error, fix the cause, then Retry the exception (Retrying a publish exception). See A publish run is Partial or Failed. |
| Run outcome Partial | Some lines succeeded and at least one failed. | As above, for each Open exception. |
| A run that ends No changes although a version should have applied | The version is not effective today, the module's feature is off, or the registry already names it. | A version passed its effective date but never published. |
| No run at all on a day there should have been one | The batch job is not scheduled, is on hold, or the batch service is stopped. | System administration > Inquiries > Batch jobs: find the job captioned for the publish engine and check its status and recurrence. |
A run Failed with reason code LicenseNotValid | A manual run in a blocked production environment. | A publish run Failed with a "LicenseNotValid" exception. |
Ballast does not retry a failed write on its own, and it does not catch a deadlock or an update conflict separately: each is recorded as a failed line. A problem outside a single company's write (finding the effective version, or seeding a baseline) ends the rest of the run without an exception row, so a run that finishes early with fewer lines than you expect is worth a look at its Infolog. Before you retry, use Compare on the version: a failure late in the step can leave the live tables already written.
Ballast does not stop two runs overlapping. Keep one recurring job, and avoid Publish now while it is running.
Effect on other functionality.
- It overwrites the live parameters that the standard pages show and that every process in the module reads, in every company for a per-company module. Rows of a list table are deleted and re-inserted, so a row someone added straight to the live list is removed (Rows I added directly to a list table disappeared).
- Its own writes are not recorded as direct changes: while it runs, direct-change capture and draft-edit capture stand aside, and the engine records Published events instead.
- It holds row locks on the live parameter records while it writes each module in each company. Run the recurring job outside the busiest hours if you have many companies.
Publish now
Purpose. Applies a module's effective version at once, without waiting for the scheduled run: after an emergency change, or after approving a version that takes effect today.
Trigger. The Publish now button on any version page, with a version selected. It runs in the user's session,
not in batch. Privilege MGCBallastPublishNowRun, in Ballast administrator and Ballast approver.
Configuration and scheduling. None. It always publishes one module, never forced.
What it does.
- Checks the license first. A blocked production environment is refused here, before any run exists.
- Checks that the selected version is the one effective today in the company you are signed in to. It does not choose a version: if the selected one is not effective, it is refused.
- Runs the publish engine for that module, so every company's effective version is applied, not only the current company's.
- Reports the run's outcome.
Depends on. As the publish engine. The version must be effective in the current company.
Reads and writes. As the publish engine, for one module.
Logging and monitoring. The message on screen, and the run on Ballast publish runs:
| Outcome | Message |
|---|---|
| Success | "Publish now applied the effective version. Ballast publish runs shows each table it published." |
| Partial | "Publish now finished with outcome Partial: at least one company or table failed. Work its exceptions in Ballast publish runs." |
| Failed | "Publish now failed. Ballast publish runs shows the failed lines and their exceptions." |
| No changes | "Publish now found nothing to publish: the effective version is already applied in every company." |
A hold writes no line, so a run that only held also gives the No changes message.
Errors and recovery.
| Message | What to do |
|---|---|
| "The selected version is not the current version for this bundle, so publishing would not apply it. Only the current version can be published now." | The selected version is not current: a draft, or an approved version that is planned, replaced or expired. Check its Effective state. More |
| "This bundle has no current version, so there is nothing to publish. Approve a version that covers today first." | Approve a version whose window covers today. |
| "Publish now must be launched from a parameter version record." | Select a version first. |
| "Publishing a parameter version is unavailable because the Ballast license in this environment is not valid (license status: …)." | Licensing. |
Effect on other functionality. As the publish engine. On a per-company module it writes into every company, which surprises people who started it from one: see Which companies a publish writes into.
A publish scheduled through the service
Purpose. Lets a release pipeline or another system queue a publish for a set time, for example right after it has imported and approved a version.
Trigger. The schedulePublish operation of MGCBallastPublishService
(Custom services). Privilege MGCBallastIntegrationServiceGoLive, in
Ballast integration only. Its sibling publishNow runs the engine at once, in the call.
Configuration and scheduling. The request's Bundle (None for every module), Force, and StartDateTime in
UTC (blank for now). Ballast creates a one-time batch job with one task, captioned "Ballast publish engine", with
no recurrence and no batch group, and returns its BatchJobId and start time.
What it does. Refuses a named module whose feature is off (FeatureDisabled) and, in a blocked production
environment, refuses to schedule at all (LicenseNotValid). Otherwise the job, when it starts, is an ordinary run of
the publish engine, with Manual run No.
Depends on. The batch service. The calling application's Microsoft Entra ID registration and its role.
Reads and writes. A batch job; then as the publish engine.
Logging and monitoring. System administration > Inquiries > Batch jobs until it runs, then Ballast publish
runs. Read the run back through BallastPublishRuns, matching its batch job.
Errors and recovery. A refused call returns Success false with an error code and a message; nothing is
scheduled. A job that fails at run time is a publish run with lines and exceptions, worked like any other. To cancel a
scheduled publish, delete or cancel its batch job before it starts.
Effect on other functionality. The license is checked when the job is scheduled, not when it runs: a job scheduled before a block date still runs after it, like the recurring job.
Version window expiry: revert or hold
Purpose. Makes a version with a To date safe: when its window ends, the company goes back to the version underneath it, and if there is nothing underneath, Ballast keeps the values live and tells someone rather than rewriting the parameters to an old baseline on its own.
Trigger. Part of every publish run, in each company where the version applied is no longer effective because its To date has passed.
Configuration and scheduling. None beyond the publish engine's schedule: the change happens on the first run after the To date. Force republish overrides a hold and applies the baseline.
What it does.
| Left effective | The engine | Raised |
|---|---|---|
| Another approved version | Reverts: publishes it, as an ordinary publish. | After the publish: a warning, an Expired audit event on the lapsed version (old value its name, new value the successor's), and Ballast version window ended with Successor applied Yes. |
| Only the baseline | Holds: writes nothing, leaves the registry on the lapsed version, records no line. | A warning on every run. Once while its exception is Open: an exception with reason code WindowEnded, an Expired audit event (new value blank), and Ballast version window ended with Successor applied No. |
A version taking over the day after another's To date is reported in the same way as a revert. The steps and a worked example are in I want to make a temporary change, and the rules in When a To date passes.
Depends on. The publish engine running after the To date.
Reads and writes. As the publish engine; on a hold, only the exception, the audit event and the business event.
Logging and monitoring. The Infolog of the run:
- Revert: "Ballast: the window of … version '…' ended on …. Company '…' was reverted to '…', the version now current. If that is not what should be live, approve a successor."
- Hold: "Ballast: version '…' of the … bundle no longer covers today and no approved successor version covers today. Company '…' was NOT reverted to the baseline; the values of '…' remain live. Approve a successor version (or restore the baseline into a new version and approve it) to resume governed publishing."
Then the Expired events in Configuration audit, the business event, and the WindowEnded exception on the
run that first saw the hold. A hold reports No changes.
Errors and recovery. A hold is not a failure, and Retry is not offered for it: "A WindowEnded hold cannot be retried: publishing again changes nothing until a successor version is approved. Approve one, or dismiss the exception." Approve a successor, or restore the baseline into a new version and approve it, or run the engine with Force republish to apply the baseline. Dismissing the exception does not end the hold; the next run raises a new one. More
Effect on other functionality. A revert rewrites the live parameters; a hold leaves the lapsed values live, indefinitely. While a module holds, a new version starts from the lapsed version's values, not the baseline's (What a new version inherits).
Retrying a publish exception
Purpose. Re-runs a publish that failed, once its cause is fixed, and records on the exception whether that worked.
Trigger. Retry on the Exceptions tab of Ballast publish runs, with one or more Open exceptions
selected. Dismiss and Resolve on the same tab only change the status. Privilege
MGCBallastExecutionExceptionMaintain, in Ballast administrator and Ballast approver.
Configuration and scheduling. None. Retry is never forced.
What it does. For each selected exception in turn, runs the publish engine for the exception's module, in the user's session. Then it looks for an Open exception for the same module and company in the new run: none means Resolved, one means Retried, and the new run's exception carries on.
Depends on. The license, because it is a manual run. The cause of the failure being fixed.
Reads and writes. The exception's status; then as the publish engine.
Logging and monitoring. A new run on Ballast publish runs for each exception retried; the exception's status, Modified by and Modified date and time.
Errors and recovery.
- "A WindowEnded hold cannot be retried: …": see Version window expiry.
- "Only an Open exception can be retried, dismissed or resolved. This one is …." Each action is final.
- A license refusal leaves the exception Open.
- If a retry stops with an error, the exceptions selected after it are not processed. Select them again.
Effect on other functionality. Each retry is a full publish of the module across every company. Several
exceptions for the same module selected together run the engine several times. A LicenseNotValid exception's
module is None, so retrying it publishes every module. A retry is marked Resolved whenever the new run raised no
exception for that module and company, including a run that had nothing left to do.
Baseline and predecessor seeding
Purpose. Gives every module a starting point that matches what is live, so turning Ballast on changes nothing, and gives every new version the values of the version before it, so a draft starts from what is in force.
Trigger.
- Baseline: the first time a version page is opened in a company (for the current company), and the first publish run that reaches a company with no version for a module (for every company).
- Predecessor seeding: every new version, however it is created: New, Restore this version, the version service, or a data entity.
Configuration and scheduling. None. The publish engine skips modules whose feature is off, so it seeds none for them.
What it does.
- Baseline. If the module has no version at all in the company, Ballast creates one: Approved, blank From date and To date, named after the module (for example Default Customer Parameters Version). Its snapshot is copied from the live tables; a list table's live rows are all copied. If another session creates it at the same moment, the second one gives way quietly.
- Predecessor seeding. A new version copies every row of the version effective today, or, where only the baseline is effective, of the version the registry says was last applied.
The details, and how the publish engine treats a baseline, are in First open seeds a baseline and What a new version inherits.
Depends on. The live parameter records existing. A snapshot of a single-record table is taken only where its live record exists.
Reads and writes. Reads the live tables and the registry. Writes the version and value tables, and a Version created event (or Imported, for a version that came in through a data entity).
Logging and monitoring. The baseline appears in the version list; the audit trail shows its Version created event. Seeding writes no Infolog message.
Errors and recovery. A baseline taken from live tables that held blank values holds blanks too. If a version shows blank values that live does not, see One-off maintenance operations.
Effect on other functionality. Seeding is not recorded as a draft edit or a direct change. The engine adopts a baseline into its registry without writing it to live, so a first run reports No changes. Any approved version with a blank From date is treated as a baseline: the engine adopts it or holds on it, and publishes it only when forced.
The audit retention purge
Purpose. Keeps the configuration audit trail to the period your policy requires, so it does not grow without end. It is the only routine way rows leave the trail, which is otherwise append-only.
Trigger. Menu item Purge configuration audit history, at System administration > Setup > Purge configuration
audit history. Run it at once or set a recurrence on its Run in the background tab; Ballast creates no schedule.
Privilege MGCBallastAuditRetentionRun, in Ballast administrator only.
Configuration and scheduling.
| Setting | Where | Default | Notes |
|---|---|---|---|
| Audit retention (days) | Ballast parameters, tab Configuration audit | 2555 (about seven years) | "0 or less turns purging off." Saving a new value records a Retention changed event. |
| Retention days | The purge dialog | 0 | "Days of audit history to keep. 0 uses the configured retention, 2555 days unless it has been changed." A positive number wins for that run only. |
| Recurrence | The Run in the background tab | None | Monthly or quarterly. |
What it does.
- Takes the dialog's number if it is positive, otherwise the one on Ballast parameters. If that is 0 or less, it stops and says so.
- Counts the events older than that many days before now (UTC), across every company and every event type.
- If there are any, deletes them in one transaction, together with the approval decisions made before the same cutoff, then records one Retention cleaned event (source System) whose old value names the cutoff and whose new value the number of events purged.
Depends on. Ballast parameters, which creates its own record with the default the first time it is read.
Reads and writes. Deletes rows of MGCBallastAuditEvent and MGCBallastApprovalDecision; writes one Retention
cleaned event.
Logging and monitoring. The Infolog: "Ballast audit retention: purged … event(s) older than … day(s)." (also when the number is 0), or "Ballast audit retention is disabled (retention days <= 0); nothing purged." The Retention cleaned event in Configuration audit. The routine is SOP 6: Quarterly: retention and growth.
Errors and recovery. It catches nothing: a failure rolls the whole deletion back and nothing is purged, so run it again. A very large first purge is one large transaction; if that is a concern, purge in steps by running it a few times with a decreasing Retention days. See The purge reports it did nothing.
Effect on other functionality. Deletion is permanent, and it includes older Retention cleaned and Retention
changed events. Ballast approval reporting shows nothing for the months purged. Export the trail and the
decisions first if you must keep them longer somewhere else (BallastAuditEvents, BallastApprovalDecisions).
Publish runs, their lines and their exceptions are not purged by this or any other Ballast process.
Draft-edit capture
Purpose. Records every value someone changes on a version while staging it, so a version's audit history shows what was changed, by whom, before it was approved.
Trigger. Saving a change to a version's values: on a version page, through the version service, or through a value data entity. Adding or removing a row of a list on a version page.
Configuration and scheduling. None.
What it does. Compares the saved snapshot row with its previous values and writes one Draft edited event per changed field, attributed to the version and its module. A list row added or removed on a version page is one event with field (row). It does nothing while a publish run or seeding is writing.
Depends on. Nothing outside Ballast.
Reads and writes. Writes MGCBallastAuditEvent, source Governed.
Logging and monitoring. Configuration audit, or the Configuration audit button on the version, which shows only that version's events (Opening the trail from a version).
Errors and recovery. Capture never blocks the save: if recording fails, the save still goes through, without an event.
Effect on other functionality. List rows that a data entity import adds or removes are not recorded as Draft edited; the version's Imported event is the record of the import.
Direct-change capture
Purpose. Makes every change to a governed parameter that bypasses Ballast visible, and lets you be alerted to it. Ballast does not block those writes: stopping an import or an integration partway through would do more harm.
Trigger. Any update to one of 71 of the 72 covered standard tables, and any insert or delete on one of the
twenty-one list tables, made outside a publish run: the standard parameter pages (where a field is not locked), Data
management, OData, or code. BatchGlobal is not captured (What direct-change capture covers).
Configuration and scheduling. The module's feature must be on: a table whose module is turned off is not governed, so its changes are not recorded. For alerts, activate Ballast direct (ungoverned) change detected in the business events catalog and give it an endpoint (I want to send the Ballast business events where people look).
What it does.
- On an update: one Direct changed event per changed field, with old and new values, the user and the company. If at least one field changed, one business event for the record.
- On a list-table insert or delete: one Direct changed event for the row, and one business event.
Depends on. The business events framework and an endpoint, for alerts.
Reads and writes. Writes MGCBallastAuditEvent, source Direct, with no module and no version. Sends
Ballast direct (ungoverned) change detected, carrying the table, the company and the user
(Business events).
Logging and monitoring. Configuration audit with Source Direct. The weekly review is SOP 4: Weekly: review ungoverned changes.
Errors and recovery. Capture never blocks the write: if recording fails, the write still goes through, without an event. To undo a direct change, see I want to catch a change made outside the governed path.
Effect on other functionality. None on the write itself. A busy integration writing parameter tables produces a matching volume of audit events: see The audit trail is growing very fast.
Recording a Data management import
Purpose. Tells an imported version apart from one made in the environment, so the audit trail shows where a version came from.
Trigger. A version arriving through one of the fourteen version entities, from a Data management import project or an OData write.
Configuration and scheduling. The module's feature must be on: otherwise the entity refuses the write with "The … bundle is turned off, so its versions cannot be imported or changed through a data entity. Turn on … in Feature management first." The version's Status cannot be imported, so an imported version arrives as a Draft.
What it does. Creates the version as any new version is created (predecessor seeding included), and records Imported instead of Version created. A value row whose VersionName names no version is refused: "The version this row belongs to does not exist, so the row cannot be saved. Import or create the version first, and check that the version name on the row matches it."
Depends on. Data management, and the entity privileges for the module (Data-entity privileges are separate).
Reads and writes. The version and value tables; an Imported event; Draft edited events for value rows the import updates.
Logging and monitoring. The Data management job's own log, and Configuration audit.
Errors and recovery. See Import, export, and OData. The import is not license-gated; approving what it brought in is.
Effect on other functionality. Nothing goes live: the version still needs Approve and a publish.
License check-in and the license gate
Purpose. Keeps Ballast's license current, and stops new approvals and manual publishing in a production environment whose license has lapsed, while leaving every page readable and already-approved versions taking effect.
Trigger.
- At every application startup, Ballast registers itself with the licensing module that ships with it.
- The licensing module, also at startup, makes sure a recurring batch job Magicite license refresh exists, and queues a one-time job Magicite license check-in after startup. Ballast does not create these.
- The gate is checked when someone approves, restores or publishes.
Configuration and scheduling.
| Item | Detail |
|---|---|
| Magicite license refresh | Daily, with no end date, first run the day after it is created, running as the Admin user, batch log level Never. It is recreated at the next startup if it was deleted or canceled; a job put on hold stays on hold. Run it by hand from System administration > Setup > Magicite > License refresh. |
| License parameters | Overrides only; leave blank. See Configuration reference. |
| The gate | Applies in a production environment only, and only from the block date. The periods are in Licensing. |
What it does. The check-in fetches a verdict for the environment and the licensing module stores it. A gated action reads that verdict, which is cached for five minutes, so a refresh can take that long to show. When a gated action asks whether the license is blocked:
A fault inside the licensing client counts as "not blocked". Never gated: viewing, comparing, the audit trail, creating and editing drafts, imports, the audit purge, the maintenance operations, Dismiss and Resolve.
Depends on. The licensing module; outbound access to the licensing service; the batch service.
Reads and writes. The licensing module's own tables. Ballast stores nothing about the license. The same daily refresh sends Ballast's usage counts, unless Usage telemetry enabled is off on License parameters (System administration > Setup > Magicite > License parameters).
Logging and monitoring. The license notices on Ballast parameters and Ballast publish runs; a session
warning elsewhere close to the block date; the refresh job's history in Batch
jobs. MGCBallastDeploymentService.getDeploymentInfo reports the license status for monitoring.
Errors and recovery. Licensing lists every message and status and what to do.
Effect on other functionality. A run the batch server starts is never refused, whoever created its batch job.
Help registration at startup
Purpose. Points the Help icon on every Ballast page at the Ballast documentation.
Trigger. Every application startup.
Configuration and scheduling. Documentation base URL on System administration > Setup > Magicite > Documentation help. Ballast's default
is https://go.magicite.tech/documentation; it is written only into a blank address, or one that still holds the
previous default, so an address you set is kept (Contextual help).
What it does. Registers the product, its page prefix and the default address with the licensing module.
Depends on. The licensing module.
Reads and writes. The Documentation help settings.
Logging and monitoring. None. A failure is ignored, and the icon keeps the address it had.
Errors and recovery. If the icon opens the wrong place, correct the address on Documentation help.
Effect on other functionality. None.
The version approval workflow
Purpose. Lets a module's versions be approved by the people a workflow assigns, instead of by whoever holds the Approve button. Turned on per module (Approving through a workflow).
Trigger. Submit on a version page. Submit, the Submitted status, the submission row on Ballast version approvals and the start of the workflow happen in one transaction, so a failure leaves the version a draft and no workflow behind. In the same transaction the submission records what publishing the version would change (Changed values, Changed tables, Changed table names, from the comparison Compare shows) and its pre-flight Warnings, so the workflow's conditions read them from the start; Resubmit records them again. After the submit, the warnings are shown in the message bar (What a submission records).
Configuration. A Ballast version approval workflow configuration in each legal entity whose versions are submitted (Approval workflow). The workflow runs on the standard workflow processing, like any other workflow in the environment.
What each workflow event does.
| Event | Version | Submission | Audit event |
|---|---|---|---|
| Submit | Draft to Submitted | Created, Pending | Submitted |
| The workflow completes (approved) | Submitted to Approved | Approved | Approved, under the approver's name |
| The approver rejects | Submitted to Draft | Rejected | Rejected, with the approver's comment |
| Resubmit on the returned work item | Draft to Submitted | Pending again | Submitted |
| The workflow is canceled while pending | Submitted to Draft | Canceled | Submission canceled |
| Submit again after a rejection | Draft to Submitted | The rejected one's workflow is canceled; a new one is created, Pending | Submitted |
Workflow events run under the workflow's own account, so Ballast takes the person who acted, and their comment, from the workflow history. An event that finds the submission already decided changes nothing.
Errors and recovery. While the license blocks approvals in production, the completion step refuses and the workflow stops with an error; the version stays Submitted. Resume the workflow from its history once the license is valid. A version can be submitted only while it is a draft and its module's setting is on.
Impacts. A version approved through the workflow publishes exactly like one approved with Approve. The approval warnings are not shown when the workflow completes, because no one is on the page then: they are shown at Submit, kept on the submission as Warnings at submit, and recomputed as Warnings now on Ballast version approvals while the submission is pending. Each approval, rejection and cancellation is also recorded as an approval decision.
Recording approval decisions
Purpose. Keeps one row per decision on a version, with who submitted it and how long the decision took, for Ballast approval reporting and the Ballast approval decisions entity.
Trigger. Ballast writing one of four configuration audit events on a version: Approved (through the workflow,
with Approve or with the activateVersion service), Rejected, Submission canceled or Withdrawn.
Configuration and scheduling. None. It runs whenever the audit event is written, whatever the module's approval setting.
What it does. In the same transaction as the audit event, it writes a decision with the event's company, module, version, actor and time, the date and month in the company time zone, and, for a rejection or a withdrawal, the comment or reason. When the version's last approval event before it is a Submitted event, the decision is through the workflow and also carries the submitter, the submit time and the turnaround in hours. It counts the version's earlier rejections.
Reads and writes. Reads MGCBallastAuditEvent and the version; writes MGCBallastApprovalDecision, which nothing
updates or deletes but the audit retention purge.
Errors and recovery. It runs inside the transaction of the action that writes the audit event, so a failure rolls that action back with it, as a failure to write the audit event would.
Effect on other functionality. Decisions made before Ballast recorded them are not reconstructed: they are on the configuration audit only.
One-off maintenance operations
Three operations repair version data that should not occur in a healthy environment. Each has a read-only partner that reports what it would act on, so run that first. None runs on a schedule, and none can run in batch.
| Operation | What it acts on | What it does | Recorded as |
|---|---|---|---|
| Repair blank snapshots | A single-record snapshot row of any version, in any company, that holds only default values, or a blank mandatory field | Replaces a fully blank row with a fresh copy of the live record, or fills only the blank fields from live. A row whose live record is blank too is left alone. Names, status and dates are kept. Approved versions are repaired too. | One Snapshot repaired event per row, source System |
Purge BatchGlobal direct changes | Direct changed audit events recorded for BatchGlobal, the batch scheduler's own runtime state | Deletes them in one transaction. | One Retention cleaned event |
| Purge orphan snapshots | Snapshot rows whose version does not exist | Deletes them, one transaction per table and company. | One Retention cleaned event per table and company |
Running one.
- From the web client, as a system administrator, open
https://<your-environment>/?mi=SysClassRunner&cls=MGCBallastRepairBlankSnapshots(orMGCBallastPurgeBatchGlobalAudit, orMGCBallastPurgeOrphanSnapshots). Each lists what it found and changes nothing until you confirm; the default answer is No. Run in batch, each refuses: "This job asks for confirmation before it changes anything, so it cannot run in batch. Run it from the web client." - Through
MGCBallastMaintenanceService:findBlankSnapshots/repairBlankSnapshots,countBatchGlobalDirectChanges/purgeBatchGlobalDirectChanges,findOrphanSnapshots/purgeOrphanSnapshots. The request'sCorrelationIdis stored on the audit events they write. The read operations needMGCBallastIntegrationServiceView; the othersMGCBallastIntegrationServiceMaintain, which Ballast integration and Ballast integration (staging) both hold (Security model).
Messages.
| Operation | Nothing to do | Done |
|---|---|---|
| Repair | "No blank version snapshots were found. Nothing to repair." | "… snapshot(s) refilled from the live parameters. … left as they were, because the live table holds only default values too." |
BatchGlobal purge | "The audit trail holds no BatchGlobal direct-change events. Nothing to purge." | "… BatchGlobal direct-change event(s) purged." |
| Orphan purge | "Every version snapshot row belongs to a version. Nothing to purge." | "… version snapshot row(s) without a version purged." |
Effect on other functionality. A repaired snapshot of an approved version changes what that version writes the next time it is published, and a forced republish writes it at once. The purges delete data permanently. None of the three is license-gated or limited by Feature management.