Skip to content

StaticInputMap

Holds all decision input data and provides an API to retrieve decision records and validation errors.

Methods

record(ref, contexts)

Return Value: DecisionInputBase or undefined if not matched.

Parameters:

  • ref: DecisionRef
  • contexts: LookupContexts - When a decision ref matches more than one decision input and no contexts were provided, it resolves to the decision with less (or higher) context.
records(filter?)

Return Value: DecisionInputBase[]

Parameters:

  • filter (optional): A filter function (item: DecisionInputBase) => boolean
hasErrors()

Return Value: boolean indicating if there were validation errors.

validationErrors()

Return Value: DecisionInputError[] or null if there were validation errors.