Create Fact Definition
lexq_facts_createRegister a new input variable. Key starts with a letter, then letters, numbers, and underscores (e.g. paymentAmount). Casing is not enforced. Types: STRING, NUMBER, BOOLEAN, LIST_STRING, LIST_NUMBER.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable key. Any casing; must start with a letter. | |
| name | Yes | Display name | |
| type | Yes | Value type | |
| isPii | No | Mark as PII — masked on every read surface, revealable only in the console (audited) | |
| isRequired | No | Whether this fact is required for rule evaluation | |
| description | No | Description | |
| valueDomain | No | Which values this fact accepts. Omit for no constraint. STRING and LIST_STRING take allowedValues only; NUMBER and LIST_NUMBER take all three; BOOLEAN takes none. Declaring it lets the rule editor offer a dropdown and rejects a rule literal that could never match. |