MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Analysis: Should classifiers include a "was ever" property #26

Closed MerrionComputing closed 4 years ago

MerrionComputing commented 4 years ago

When you run a classifier over an event stream it returns a value for the current state of the entity relative to the classification - for example a classifier accounts in arrears would return true if the account is in arrears as at the time the classifier was run.

However some queries might want to know if the classifier has ever been true over the entire history of the event stream.

This seems like somethinhg relatively easy to accomplish from the code side so the question is really the utility it brings

MerrionComputing commented 4 years ago

Seems pretty straight forward to do so no harm to do it and see where (if) it leads.

MerrionComputing commented 4 years ago

Added to ClassificationBase so all classifiers have this out of the box.

https://github.com/MerrionComputing/EventsSourcing-on-Azure-Functions/blob/master/src/EventSourcingOnAzureFunctions.Common/EventSourcing/ClassificationBase.cs