rule-engine

creating a simple rule engine in java

这一生的挚爱 提交于 2019-11-26 15:06:02
问题 I am exploring different ways to create a simple business rule engine in Java. I need to present the client with a simple webapp that lets him configure a bunch of rules. A sample of rule base might look like this : Here's example: IF (PATIENT_TYPE = "A" AND ADMISSION_TYPE="O") SEND TO OUTPATIENT ELSE IF PATIENT_TYPE = "B" SEND TO INPATIENT The rule engine is pretty simple, the final action could be just one of two actions, sending to inpatient or outpatient. The operators involved in an

Rules Engine - pros and cons

…衆ロ難τιáo~ 提交于 2019-11-26 15:00:57
问题 I'm auditing a project that uses what is called a Rules Engine. In short, it's a way to externalize business logic from application code. This concept is entirely new to me and I'm pretty skeptical about it. After hearing people talk about Anemic Domain Models for the past few years, I'm questioning the Rules Engine Approach. To me they seem like a great way to WEAKEN a domain model. For example say I'm doing a java webapp interacting with a Rules Engine. Then I decide I want to have an