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
: DecisionRefcontexts
: LookupContexts - When a decisionref
matches more than one decision input and nocontexts
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.