Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Document Configuration

Use Document Configuration to create the document types your team processes. Define fields, sub-types, approval settings, and rejection reasons.

Use Document Configuration to create and maintain the document types your team processes, such as invoices, orders, quotes, or returns. Each type has its own field schema, sub-types, approval settings, and rejection reasons. Types also drive the Documents menu and appear as separate rows in Access Configuration.

The list shows each type's ID and Name. From here you can create a type, open Schema Editor with a row's edit action, or delete a type you no longer need.

Document Configuration list with ID, name, edit, and delete for each type
Document Configuration with document types, ID, and name

Creating a document type

1

Open Document Configuration

In the Document Intake Cockpit, open Configuration → Document Configuration.

2

Enter the ID and name

Select New Document Type. Enter a unique ID (stored in uppercase), for example ORDER_INTAKE, and a Name (EN) shown under Documents, for example Order.

3

Save and reload

Select Save. The type appears in the list. Reload the cockpit so the new entry shows under Documents.

New document type dialog with ID and name (EN)
New document type with ID and name (EN)

Choose an ID you can keep long term. Related setup such as Form Layouts, State Transition, and Approval Matrix refers to this type. For the full sequence across Configuration pages, see Suggested setup order.

Schema editor

Select a row's edit action to open Schema Editor. It shows the type ID and related tabs. Each tab saves on its own, and unsaved changes are flagged.

  • Attributes – Fields used for extraction, forms, matching, and approval bindings.

  • Sub-types – Variants within this document type.

  • Approval Configuration – Fields that select the approval matrix and the amount used for thresholds.

  • Rejection Reasons – Coded reasons an approver can select when rejecting a document of this type.

Sub-types, Approval Configuration, and Rejection Reasons need the documentSubTypes, approvalConfig, and rejectionReasons mixin schemas registered for the tenant. If a tab says its schema is unavailable, ask the team that provisions your Emporix tenant to create that named schema.

Attributes

On Attributes, the tree lists Key, Name, and Type. Select Add field for a top-level field, or use a row's add action to nest under an OBJECT (or an ARRAY whose item type is OBJECT). When you change an existing field, the same form is labeled Edit field.

Set Type, Key, Name (EN), Description (EN), and Settings. ARRAY also needs Array item type. REFERENCE also needs Referenced entity. DECIMAL and an ARRAY of DECIMAL also have Precision.

Schema editor attributes tree with nested header, customer, line items, and total
Schema editor attributes with key, name, and type
Edit field dialog with Type DECIMAL, Precision, Key, Name (EN), Description (EN), and Settings
Edit field with type, precision, key, name (EN), description (EN), and settings

Settings control how Schema Service treats the field when document data is created or updated:

  • Required – The field must be present.

  • Nullable – The field may contain an explicit null.

  • Read Only – The field cannot be edited through the schema.

  • Localized – The value is stored per language.

Data that does not meet these constraints fails when it is written. For a missing business value that can be fixed after intake, prefer a skippable validation in Business Rules. You can also mark a control Read-only in Form Layouts so the value is visible during review but cannot be changed.

Field types

Choose a Type that matches the data:

  • TEXT – Strings such as IDs, names, and emails.

  • NUMBER – Whole numbers such as quantities.

  • DECIMAL – Amounts, with a Precision setting.

  • DATE, TIME, and DATE_TIME – Calendar and clock values.

  • BOOLEAN – Yes or no.

  • ENUM – A closed list of allowed values. Define the options as Enum options on an enum control in Form Layouts.

  • OBJECT – A group of nested fields. Add children with the row's add action.

  • ARRAY – A repeating list with an Array item type, typically an ARRAY of OBJECT for line items.

  • REFERENCE – A link to a Referenced entity (tenant master-data or custom-entity types, or platform entities such as customer, company, or product).

A REFERENCE value is picked later with dropdown or lookupModal in Form Layouts.

For DECIMAL (and an ARRAY of DECIMAL), Precision lists 0.1, 0.01 (default), 0.001, 0.0001, and None (−1). Each number is the smallest step the field allows. For example, 0.01 allows hundredths, which is typical for currency. None (−1) turns the step constraint off.

Description (EN)

Description (EN) tells the extraction AI how to pull the value from the source PDF and how to avoid common mapping errors. Write a short instruction, not a restatement of the field name.

Examples:

  • Country – Use the two-letter ISO country code from the address, not the full country name.

  • Customer – Identify the customer (buyer) party, not the company (seller) party.

  • Amount – Use the net amount before tax, not the gross or tax-inclusive total.

Example order schema

Nest OBJECT under OBJECT for grouped header data, for example Header → Customer → Address. Put repeating rows such as line items in an ARRAY of OBJECT. Form layouts and approval bindings later use dotted paths such as header.customer.id.

For a full Order schema, see Document Type in the Order Intake Example. Keep keys such as header, lineItems, and total stable once forms and approval start using them.

Sub-types

Use Sub-types when one document type needs different forms, validation rules, or matching for distinct variants. Each definition has a localized name, an order, and one or more field/value discriminators.

1

Open Sub-types

On the Document Configuration list, use the row's edit action for the parent document type to open Schema Editor. Select the Sub-types tab.

2

Add the sub-type

Select Add sub-type, then enter a unique ID and a localized Name. The ID must start with a letter and contain only letters, digits, or underscores, for example NON_PO_CREDIT_MEMO. Use the move controls to set its order. After you save, the ID becomes read-only.

3

Add discriminators

Select Add discriminator. Set Binding to the schema field and Value to the document value that must match, for example Header › Company › ID and C00001. A discriminator can use a string, number, boolean, or enum leaf, including a nested field path.

Every discriminator on the definition must match. Missing or null values do not match. Strings are trimmed and case-sensitive. Numbers and booleans use their typed values.

4

Save and check conflicts

Select Save. Duplicate sub-type IDs block saving. Duplicate discriminator combinations show a warning but do not block saving; resolve the warning so two definitions do not represent the same match. You can edit, remove, or reorder definitions.

Sub-types tab with ID, localized Name, and a Header Company ID discriminator
Schema Editor Sub-types with ID, name, and discriminators

When several definitions match:

  • The definition with more matching discriminators takes precedence.

  • The lower Order value breaks ties between equally specific definitions.

The resolved sub-type decides which Form Layouts, Business Rules, and Auto Matching apply. The cockpit resolves it from current document values; it does not store the sub-type as a separate document field.

Create sub-type definitions after the Attributes they use as discriminators. Keep localized names clear so administrators can pick the right sub-type on related configuration pages.

Approval configuration

On Approval Configuration, define how the cockpit selects an approval matrix for documents of this type.

Approval Configuration with matching fields, amount field binding, and Remove approval configuration
Schema Editor Approval Configuration with matching fields and amount binding

Under Matching fields, select Add field for each value that picks the correct matrix. For each row, set:

  • Binding – The schema field, shown as a path such as Header › Company › ID.

  • Key – Unique short identifier the Approval Matrix uses for that matching column, for example companyId. Do not use the reserved key comment.

  • Label – Name shown on the matrix.

  • Type – String (TEXT or ENUM) or Number (NUMBER or DECIMAL), taken from the bound field.

Only TEXT, ENUM, NUMBER, and DECIMAL leaves appear in Binding. Nested OBJECT paths work; ARRAY, BOOLEAN, DATE, TIME, DATE_TIME, and REFERENCE are not listed.

Amount field binding is required. It points to the document field whose value is compared with each approver's Limit (amount) in Approval Matrix – for example the order or invoice total. The picker lists only NUMBER and DECIMAL fields. Use DECIMAL for a currency-style Total.

Select Save when the matching fields and amount binding are complete. Then build the chains and limits in Approval Matrix. That page lists only types with a complete Approval Configuration – at least one matching field and an amount binding.

Remove approval configuration clears this type's approval setup. The type is no longer eligible on Approval Matrix until you save matching fields and an amount binding again. Existing matrix rows for that type stay stored but cannot be used until the type is eligible again.

Rejection reasons

On Rejection Reasons, define the coded reasons an approver can select when rejecting a document of this type. The Rejection Code is stored in approval history; the Rejection Reason is the label shown in the dialog.

Rejection Reasons with Rejection Code and localized Rejection Reason
Schema Editor Rejection Reasons with code and reason

Select Add reason, then enter a unique Rejection Code and a localized Rejection Reason. Each row needs a code and a reason in at least one language before you can save. When reasons exist, the approver must select one of them. The message remains optional. If no reasons are configured, the approver enters only an optional message.

Document types in the cockpit

After you create a type and reload the cockpit, it appears under Documents using the type Name. Open that entry to work through the Documents list for the type and continue into Managing Documents. Access Configuration adds separate rows for the type's document list and document view so you can restrict each page.

Suggested setup order

1

Create the document type

Create the type and define its Attributes schema.

2

Define sub-types

Add Sub-types before you create sub-type-specific configurations.

3

Design the review form

Design the review form in Form Layouts.

4

Define the workflow

Define statuses and transitions in State Transition.

5

Configure queues and email categories

Add queues in Queue Configuration and categories in Email Configuration when you use them for this type.

6

Configure matching and validation

Configure Master Data before Auto Matching, then add Business Rules.

7

Configure approval

Complete Approval Configuration, then build chains in Approval Matrix. Add Rejection Reasons when approvers must select a coded reason.

8

Configure access

Restrict the new Documents entry in Access Configuration.

See the Order Intake Example for a worked tenant configuration in this cockpit.

Last updated

Was this helpful?