Yes, this is possible. As far as I know, it does not already exist, but it sounds like you're on the right track. The reflection module lets you view entities (MxObjectType) as well as attributes (MxObjectMember). So, here's how I'd approach this:
Good luck!
Hi Slade,
Building something like this would be possible, but you would need to get creative with your modeling. Given the complexity of this solution, it might be simpler to just train users to be Mendix developers and add these rules in the Model at design time instead of run time. In my experience, the rules don't change so often that they can't be handled in the modeler, where these sorts of changes are simple. If you have your heart set on a UI interface, however, you could leverage the Model Reflection module for this.
-Create a new entity called 'Rule' and add an enumaration for 'RuleType' (Date, numerical), and another enumeration for 'Condition' (greaterThan,LessThan,Equals), and another for EventType(SendAnEmail...other type of event.
-Make an association between MxObjectMember and your 'Rule' entity, and make a page where an admin can select which Attributes from MxModelReflection should be allowed to have rules associated.
-Create an interface where a user can pick from Attributes, create a new Rule, and set the Rule Conditions. They could do things like if attribute X became greater than value Y then send an e-mail or if
-Make a scheduled event that would run each night to check your conditions and run microflows based on the conditions. For example, each night you retrieve all the 'Application' entities and then run your rules against them. Checking to see if the 'due date' has expired and if so send an e-mail to the owner of the applicaiton.
So the short answer is there is not an easy way to expose a business engine rule to the front end. Something could be constructed, but I could imagine this spiraling in complexity into something massive. There would be tradeoffs between what you would do in the Modeler and what you could expose in the front end. Perhaps it would be better to push for Mendix training and let users create business rules in the Modeler, and simply establish a regular cadence of testing and code pushes so that changes to the model would be moved into production and activated. I hope you are able to build a satisfying solution for your users!
Best,
Rob