Skip to main content

Automated processes

Lattice does part of its work without anyone pressing a button: it runs queued requests, retries failures, cleans up its logs, sends time-based business events and checks its license. This section has one page for each of those processes. Each page says why the process exists, what starts it, what you can configure, how it works, what it needs, what it reads and changes, where to see that it ran, what to do when it fails and what else depends on it.

The guides by process cover the work people do; the guides by role cover where each person goes.

Background processes: they run by themselves​

These are process automation background processes. When Lattice is deployed with your build, the deployment's database synchronization registers them, and from then on they run on their own interval, with nothing for you to schedule. Do not also schedule their jobs as recurring batch jobs: both would run.

They cannot be switched off. On System administration > Setup > Process automations, Background processes, Edit changes only Repeats, Repeat interval, Next execution, the sleep period and the owner, and a later deployment keeps your changes. A daily process first runs at the first poll after the deployment that registered it, and keeps that time of day (later if a run is late). To choose the hour, set Next execution.

ProcessIntervalWhat it does
Lattice Async Operation ProcessingEvery minuteRuns queued asynchronous operations and settles the ones that stopped without a result.
Lattice dead-letter retryEvery 5 minutesReplays dead-letter items that are due for another attempt.
Lattice recurring data job health alertsEvery 15 minutesEvaluates each recurring data job's health and raises an alert event when it changes.
Lattice idempotency reconciliationEvery hourFinalizes, releases or parks claims stuck in Processing.
Lattice business event reconciliationEvery hourPublishes again the business events whose publish failed.
Lattice workflow stalled or failed alertsEvery hourRaises an event for faulted workflows and work items pending too long.
Lattice service call statistics rollupOnce a dayRebuilds the daily totals that Service call statistics shows.
Lattice integration log cleanupOnce a dayDeletes log rows older than their retention period.
Lattice file ingestion cleanupOnce a dayDeletes processed file ingestion bundles past their connection's retention.
Lattice sales price effectivity eventsOnce a daySends the effective and expired events for sales prices whose dates have arrived.

Batch jobs you schedule​

Nothing runs these until you schedule them.

ProcessScheduleWhat it does
File ingestion pull and segment processingTwo batch jobs, once for the environmentPicks up partner files and sends each record to its target operation.
Inbound order policy evaluationOne batch job in each legal entity where the policy is onHolds, flags or confirms new sales orders against the price tolerance.

Jobs you run when you need them​

ProcessWhenWhat it does
Service and OData metadata refreshAfter each deployment, or when the catalogs look out of dateFills the catalogs of services, operations and data entities. Nothing starts it automatically.
APIM bundle bulk exportWhen you publish to Azure API Management, or on a schedule you chooseBuilds the API Management bundles and can upload them for a pipeline.

The business event catalog refresh (System administration > Periodic tasks > Lattice business events > Refresh catalog, Integration administrator) is another job you run when you need it, after a deployment that adds events. Nothing runs it automatically.

These jobs also run only when you start them, and each needs the Integration administrator role:

  • On System administration > Periodic tasks > Lattice business events: Business event coverage report (compares the events this environment exposes with the reference list of Finance and Operations business events), Load business event reference list (loads that reference list; the coverage report loads it by itself when it is empty), and Publish all customer business events (resync), Publish all item business events (resync) and Publish all external item business events (resync), which send the customer or item events again for every record, for example to bring a new subscriber up to date.
  • On System administration > Periodic tasks > Lattice data entities: Analyze table data and entity coverage, which takes a new snapshot for Table data and entity coverage (see Checking table and entity coverage).

Started by Lattice itself​

ProcessWhenWhat it does
Lattice license check-inAt each environment start, then dailyBrings back the environment's current license.
Database access expiry sweepAt each grant's expiry timeRevokes just-in-time database access grants that have expired.
What Lattice does at server startupEach time a server startsRegisters licensing, the set-based import entities and the pages for the Help icon.