In this section, we'll describe the 'validation slice' of this application (from bottom to top). That includes the definition of validation knowledge base, validation service, and the user interface.
We already have the validation service implementation. We'll now configure it with Spring. The first step is to build the validation knowledge base that will be used by the validation service. It will be managed by Spring like any other bean. The configuration goes into the
Unfortunately, Drools, as of version 5.0, doesn't integrate with Spring out of the box. This means that we'll have to create our own Spring 'factory bean' that knows how to build a knowledge base. The implementation of such a factory bean ( ...