Context
A Context is a collection of key-value pairs, similar to a JSON object or a map. It is useful for simplifying complex decisions by breaking them down into intermediate calculations.
Structure
A Context consists of multiple Context Entries.
- Key: The variable name.
- Value: An expression (Literal, Decision Table, etc.) determining the value.
The last entry can be an optional Result expression. If present, the Context returns the result of that expression. If absent, the Context returns the map of all entries.
Example
Definition:
Principal: 100000Rate: 0.05Term: 30- Result:
Principal * (1 + Rate * Term)
FEEL Equivalent:
{
"Principal": 100000,
"Rate": 0.05,
"Term": 30
}