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.
| Process | What it does | Schedule it? | Page |
|---|---|---|---|
| Accrual event processor | Turns queued posting events into accruals, balance updates and Earmark journals, then posts the journals set to post automatically | Required. Without it nothing accrues | Accrual event processing |
| Unaccrued transaction sweep | Finds commitments whose goods moved but which accrued nothing, and queues them again | Recommended, daily | Unaccrued transaction sweep |
| Earmark retention cleanup | Deletes old timeline rows, closed exceptions, completed events and proposal sessions | Recommended; nothing warns you when it is missing | Retention cleanup |
| Generate claims | Turns accumulated accruals into open claims, one per counterparty type, invoice account and currency; it never submits them | Optional; you can also run it by hand | Claim generation |
| Propose refunds | Writes unposted customer payment journals for credits the customer asked to have paid out | Optional | Refund proposal |
| Run vendor settlement | Groups the money vendors owe you, or you owe them, into vendor claims and submits each one that is ready | Optional, vendor deals only | Vendor settlement run |
| Rebuild register | Brings the configuration register up to date; Take snapshot keeps a copy | Optional | Configuration register rebuild |
Processes that run by themselves
Do not schedule these. Each page says what starts it and how you see that it worked.
| Process | What starts it | Page |
|---|---|---|
| Post automatically | A movement a person posts directly, or the end of each Accrual event processor run, for a journal whose movement type is set to post automatically | Journal auto-post |
| Background steps (timeline, business events, mirror pairing, automatic posts) | The save or posting that offered them commits | Background steps and Retry |
| Inbound auto-pricing and headless auto-attach | An integration saves a sales order line, or a new purchase order line is saved, while the switch is on | Inbound order-line pricing |
| Business events | An act on a deal, price build, accrual, claim, mirror, vendor run, license state or migration batch commits | Business events |
| Deal and claim approval | A deal, an amendment or a claim is submitted | Approval workflows |
| License check | The application server starts, and the daily license refresh runs | License check |
On demand
| Process | Where you run it | Page |
|---|---|---|
| Rebuild balances | Deal balances on the Deal control workspace, one deal at a time | Balance rebuild |
| Claim statement | Accounts receivable > Customers > All customers, a customer, Sell tab, Earmark group | Claim statements |
| Setup checklist | Earmark > Setup > Setup checklist; the setup-gap tiles check on their own each time a workspace opens | Setup 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:
| Section | What it answers |
|---|---|
| Why it exists | What goes wrong without it |
| When it runs | Every trigger, and how to run it now or schedule it |
| Settings | Each setting it reads, where it is and its shipped value |
| What it does | The steps, in order |
| Before it can run | The setup and permissions it needs |
| What goes in and what comes out | The records it reads and writes |
| Watching it | Where you see that it ran and what it did |
| When it fails | The common failures, what each looks like and how to recover |
| Effects on the rest of Earmark | What changes elsewhere because it ran, or did not |
| Related | The role goals, process guides and stories that use it |
Related
- Installation guide: installing Earmark and the batch jobs to schedule.
- Configuration reference: every setting these processes read.
- Earmark user documentation: the guide, the role pages and the process guides.
- Process guides: the business processes (setting up, closing a period, responding to a failure) these jobs serve.
- Stories: end-to-end examples, including a month-end close.