What you're building is a decision table, a common component in business applications. I am not familiar with SPEL but it sounds like it will probably serve your needs without the need for a full fledged programming environment.
You could also look into the various rules engines available for the JVM that address the same problem. https://www.baeldung.com/java-rule-engines Regards Edmond