BuildDecisionModelOptions
API reference for BuildDecisionModelOptions
Type Alias: BuildDecisionModelOptions<State, EventType>
Section titled “Type Alias: BuildDecisionModelOptions<State, EventType>”BuildDecisionModelOptions<
State,EventType> =object
Options for building a decision model via DCB query
Type Parameters
Section titled “Type Parameters”State
EventType
Section titled “EventType”EventType extends Event = Event
Properties
Section titled “Properties”after?
Section titled “after?”
optionalafter:GlobalPosition
Only return events after this global position
evolve()
Section titled “evolve()”evolve: (
state,event) =>State
Pure function that folds an event into the current state
Parameters
Section titled “Parameters”State
ReadEvent<EventType>
Returns
Section titled “Returns”State
initialState()
Section titled “initialState()”initialState: () =>
State
Factory function returning the initial state
Returns
Section titled “Returns”State
limit?
Section titled “limit?”
optionallimit:number
Maximum number of events to read
query:
Query
DCB query to filter events