rulii-explorer 1.1.0
rulii-explorer 1.1.0 is on Maven Central as org.rulii:rulii-explorer-spring-boot-starter. It requires rulii 2.2.0 and rulii-spring 2.2.0, and the new Beans section needs rulii-bean-validation 1.0.0. You can see the explorer running on this site’s demo, which reads the demo application’s saved descriptor. The full list is in the changelog.
An application that validates with rulii-bean-validation can now show those classes too. Set rulii.explorer.beans.enabled=true and a Rules / Beans switch appears in the top bar. The Beans section lists every validated class member by member: its constraints, @Expr expressions, @Validate rules, @Bind names, container elements and cascades. Every constraint opens the rule the library built for it, read the way a rule page reads: what it checks, the error code, the message and the settings. A graph draws which beans cascade into which and which registry rules they run, and the problem checks gain three codes: BEAN_NOT_MATERIALIZED, an UNRESOLVED_TARGET for a @Validate name nothing is registered under, and UNDESCRIBABLE for a configured class that declares nothing.
Beans are found by a byte-code scan of the auto-configuration packages, from rulii.explorer.beans.classes, and from what the validator has validated. The scan reads class files, not classes, so nothing is loaded that is not a bean. The Rules section is exactly what it was without them, down to its counts and its problems.
Result types
Section titled “Result types”rulii 2.2.0 records a formal result type on rule sets and flows, and the explorer shows it: what a rule set or flow returns and where the type came from, declared, derived, by default or unknown, on its page, in the hover card and in the graph panel. A flow step that keeps a result under a name shows the result’s type, and the flow page header now lists the flow’s inputs with their types, so the flowchart view no longer shows parameter names only. The descriptor gains resultType and resultTypeOrigin on rule sets and resultTypeOrigin on flows; a flow’s resultType is absent when the type is not known, where 1.0 wrote java.lang.Object.
Resizable sidebar
Section titled “Resizable sidebar”Drag the sidebar’s right edge to make it wider when a deep category tree needs the room. The width is remembered in the browser, and the arrow keys work on the edge too.
The descriptor
Section titled “The descriptor”The descriptor is version 1.1 with the same schema; a reader of 1.0 can ignore the beans array. It can still be written at build time from any @SpringBootTest with RuliiDescriptors.write and compared between releases, so a review now sees changed constraints as well as changed rules.