Documentation
¶
Overview ¶
Package variables provides the Vars type for passing values to and from the QuantumBPM DMN engine and BPMN runtime.
Vars is a thin map[string]any with helpers for typed access and for converting to/from the wire types used by the generated client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Vars ¶
Vars holds a set of named variables. The same type is used for DMN evaluation contexts, BPMN process variables, and external job payloads.
func FromFeelContext ¶
func FromFeelContext(fctx generated.FeelContext) (Vars, error)
FromFeelContext lifts a FeelContext into a Vars value.
func FromWireMap ¶
func FromWireMap(m *generated.VariableMap) Vars
FromWireMap copies a *generated.VariableMap (typical generated BPMN response shape) into a Vars. Numbers arrive as json.Number - exact decimals survive the read path.
func (Vars) ToFeelContext ¶
func (v Vars) ToFeelContext() (generated.FeelContext, error)
ToFeelContext converts the Vars to a FeelContext for DMN evaluation. The conversion is a JSON round-trip, which faithfully preserves nested structures while letting the FEEL engine impose its type rules on receipt.
func (Vars) ToWireMap ¶
func (v Vars) ToWireMap() *generated.VariableMap
ToWireMap returns the Vars as the *generated.VariableMap shape the generated BPMN endpoints accept. Returns nil for an empty/nil Vars so that the optional field can be omitted from the request body.