Context
A context
definition in RIDDL represents the notion of a
bounded context per DDD. Contexts are introduced with the
context
keyword and have a name, like this:
context BBQ is { ??? }
In the above, the context is named BBQ
and its definition is 3
question marks.
???
means “unknown” or “to be determined”
A context
may define options. Options help the translation tools know what to
do with
Types are used in bounded contexts to define messages, function input and output, the state of entities, etc. For more on type definitions see types
Context definitions are containers and they may contain definitions that are
specific to being defined in a context
: