Import context documents from a file
A context document tells Prism what one of your words means: an acronym, a team's real name, which system a product name refers to. You write one at a time under What a word means on Admin → Definitions. When you have many, write them in a spreadsheet and import the file instead.
Where it happens
On Admin → Definitions, choose Import from a file, then Choose the file beside What a word means. Download a template beside it gives you the header row the import reads.
What the file has to look like
A CSV, UTF-8, with exactly this header row and one context document per row:
name,other words,summary,body,caution
GL,ledger;general ledger,the general ledger,The general ledger the finance team keeps.,
FIG,,the finance integration group,"FIG is the finance integration group.
It owns the payment interfaces.",Not the FIG product line.
| Column | What it holds | Required |
|---|---|---|
name | the word the document defines | yes |
other words | other words for it, separated by ; | no |
summary | one line, up to the summary limit, that says what it is | yes |
body | what the word means; it may run over several lines | yes |
caution | something a reader should be careful about | no |
A body that runs over several lines, or any cell holding a comma, sits in double quotes, which a spreadsheet adds when it saves as CSV. A file holds at most 5,000 documents and 8 MB, and one cell at most 131,072 characters. Limits says how long a file that size takes and what it costs in memory. Prism reads one definitions file at a time, this CSV or a file from Download all definitions: while another is being read, yours is refused with "another definitions file is being read; try again in a moment."
Read, then import
Read the file stores nothing. It lists every row and what importing it would do:
- new draft, revision 1: a word with no definition yet.
- next revision, a draft: a context document that exists; the row becomes its next revision.
- no change, skipped: the row says exactly what the document already says, so importing the same file again writes nothing new.
- refused, with the reason: for example a name that is already a definition of another kind, a word another definition already answers to, a summary over the limit, a name that appears twice in the file, or a document that holds something this file cannot carry, which a revision from the file would drop. Edit that one from its row instead.
One refused row does not stop the others. Import as drafts then writes every row that changes something, each as its own draft. A row that has changed since you read the file is refused at the import rather than written over the change: read the file again.
Activate on import
A context document changes what Prism is told for everyone who asks, so by default nothing goes live from an import: each row is written as a draft, and you activate it from Your definitions.
Tick Activate on import before importing to make the rows live in the same step; the button then reads Import and activate. Each row the import writes is then activated exactly as Activate on its row would, and recorded in the audit log the same way, one line per document. A row skipped as no change is left as it is, whether it is active or a draft. If a row is written but cannot be activated, for example because someone else wrote a newer revision in the meantime, it stays a draft and the table says why; activate it from its row.
At 5,000 rows an import that activates takes a few minutes, so leave the page open until it reports.
Finding and activating many definitions
Your definitions lists every definition on two tabs: Populations & sets (classifications, reporting lines, lists of identifiers, ownership tables and value sets) and Glossary (context documents), each with its count. The page remembers the tab you were on. Above the list, the search box matches names, other words and summaries, and the state filter shows only active, draft or withdrawn definitions. The list shows 50 at a time, with Previous and Next.
Tick the box on a row to select it, or the box in the header to select the page; Select all … matching then selects every definition the search and filter match. Changing the tab, the search or the filter clears the selection. Three actions apply to what is selected:
- Activate makes the newest revision of each live. It takes context documents and value sets only. Every other kind changes who Prism counts, so it is activated one at a time from its own row, where Activate shows what it changes; the page says so when one is selected, and the server refuses one sent anyway.
- Discard drafts deletes each selected definition that has never been active, as Discard draft on its row does. One that has ever been active is refused: withdraw it instead.
- Withdraw withdraws each active definition, as Withdraw on its row does.
Each asks you to confirm, naming the definitions it will change: the first ten, then how many more. Each definition is changed and recorded in the audit log exactly as its own row's button would, one line per definition. One that cannot be changed — someone else changed it after the list was loaded — is refused by name below the list, and the others still go ahead. If the server stops part-way, the page says how many were changed and sends nothing more. The page sends at most 500 definitions in one request and sends a larger selection in turn; Limits has how long each takes.