--- alias: resourcedocumentcontext-st description: "This documentation defines a context for resolving documents associated with a resource" --- # ResourceDocumentContext ## Description Used to resolve the Documents to be shown for a Resource Context. ## Fields The **ResourceDocumentContext** table has the following fields: | Field | Description | Key | Mandatory | Comments | | --- | ----- | -- | -- | ---- | | **Resource** | Resource | Yes | No | | | **ResourceType** | ResourceType | Yes | No | | | **Model** | Model | Yes | No | | | **StateTransition** | StateTransition | Yes | No | Values are taken from the [ResourceChartStateTransitions](../lookup-tables/resourcechartstatetransitions.md) lookup table.| | **Document** | Document | No | No |:information_source:| | **DocumentGroup** | DocumentGroup | No | No |:information_source: Values are taken from the [DocumentGroup](../lookup-tables/documentgroup.md) lookup table.| Table: ResourceDocumentContext fields !!! info One and only one of these values must be defined. ## Precedence Keys The search precedence rules are the following: 1. Resource, StateTransition 2. ResourceType, StateTransition 3. Model, StateTransition 4. Resource 5. ResourceType 6. Model !!! info Multiple values are possible for the same keys. Also, when looking for the Documents for a particular Resource context, all matching Documents (or Documents with matching Document Groups) for all precedence keys are returned.