State Engine
The State Engine mapping (stateengine) queries MongoDB for previously saved messages that match on one or more field values defined via the fields parameter. The matching documents are filtered, cleaned, and inserted into the current message at the to path. This mapping uses historical context for state-based workflows.
Attributes for State Engine Mapping
| Attribute | Required | Description |
|---|---|---|
| From | Yes | Defines the source field for the mapping. |
| To | Yes | Defines where the result should be inserted. |
| Precedence | Yes | Determines the order in which this mapping is applied relative to others. |
| Function Type | Yes | Must be "Enrichment/lookup functons" |
| Function | Yes | Should be set to "State Engine Mapping". |