Skip to main content

Earmark automated and periodic processes

For system administrators, accounting managers, accountants and accounts receivable and accounts payable staff who schedule, watch and recover the work Earmark does without a person selecting a button each time: the batch jobs, the steps that run by themselves after a save or a posting, and the on-demand runs that keep balances, registers and statements honest. Each page describes one process from the code as it runs today.

If you are setting up a new company, start with section 7, Batch jobs to schedule, of the installation guide: it lists which jobs are required, recommended or optional, with their batch task classes.

How the processes fit together​

Most processes leave a row on Earmark execution exceptions when a step fails; see Background steps and Retry. Some failures leave none: a posting whose accrual event was never queued (only the Unaccrued transaction sweep finds it), and most failures of inbound auto-pricing and headless auto-attach, which leave the line unpriced.

Batch jobs you schedule​

None of these runs on its own: create a recurring batch job for it in each company that uses Earmark. Each can also be run by hand from Earmark > Periodic tasks.

ProcessWhat it doesSchedule it?Page
Accrual event processorTurns queued posting events into accruals, balance updates and Earmark journals, then posts the journals set to post automaticallyRequired. Without it nothing accruesAccrual event processing
Unaccrued transaction sweepFinds commitments whose goods moved but which accrued nothing, and queues them againRecommended, dailyUnaccrued transaction sweep
Earmark retention cleanupDeletes old timeline rows, closed exceptions, completed events and proposal sessionsRecommended; nothing warns you when it is missingRetention cleanup
Generate claimsTurns accumulated accruals into open claims, one per counterparty type, invoice account and currency; it never submits themOptional; you can also run it by handClaim generation
Propose refundsWrites unposted customer payment journals for credits the customer asked to have paid outOptionalRefund proposal
Run vendor settlementGroups the money vendors owe you, or you owe them, into vendor claims and submits each one that is readyOptional, vendor deals onlyVendor settlement run
Rebuild registerBrings the configuration register up to date; Take snapshot keeps a copyOptionalConfiguration register rebuild

Processes that run by themselves​

Do not schedule these. Each page says what starts it and how you see that it worked.

ProcessWhat starts itPage
Post automaticallyA movement a person posts directly, or the end of each Accrual event processor run, for a journal whose movement type is set to post automaticallyJournal auto-post
Background steps (timeline, business events, mirror pairing, automatic posts)The save or posting that offered them commitsBackground steps and Retry
Inbound auto-pricing and headless auto-attachAn integration saves a sales order line, or a new purchase order line is saved, while the switch is onInbound order-line pricing
Business eventsAn act on a deal, price build, accrual, claim, mirror, vendor run, license state or migration batch commitsBusiness events
Deal and claim approvalA deal, an amendment or a claim is submittedApproval workflows
License checkThe application server starts, and the daily license refresh runsLicense check

On demand​

ProcessWhere you run itPage
Rebuild balancesDeal balances on the Deal control workspace, one deal at a timeBalance rebuild
Claim statementAccounts receivable > Customers > All customers, a customer, Sell tab, Earmark groupClaim statements
Setup checklistEarmark > Setup > Setup checklist; the setup-gap tiles check on their own each time a workspace opensSetup checklist

How each page is laid out​

Every page has the same sections, so the answer to a question is always in the same place:

SectionWhat it answers
Why it existsWhat goes wrong without it
When it runsEvery trigger, and how to run it now or schedule it
SettingsEach setting it reads, where it is and its shipped value
What it doesThe steps, in order
Before it can runThe setup and permissions it needs
What goes in and what comes outThe records it reads and writes
Watching itWhere you see that it ran and what it did
When it failsThe common failures, what each looks like and how to recover
Effects on the rest of EarmarkWhat changes elsewhere because it ran, or did not
RelatedThe role goals, process guides and stories that use it