4 ms·
Thanks for sharing, I’m ashamed to admit that I never really “got” these rule engines, but seeing this example finally made things click for me. Am I correct t
by stingraycharles 6y ago
Thanks for sharing, I’m ashamed to admit that I never really “got” these rule engines, but seeing this example finally made things click for me.
Am I correct that there’s a very large overlap between rule engines and workflow engines, and one could use a rule engine like this to implement workflows?
- adamkl 6y agoI have been playing with the idea that a rule engine would work well with a state machine. State machine manages the workflow, rule engine determines which transitions to execute? Maybe that is overkill, but I've been trying to build a model in my head on how to model complex business processes.
- stingraycharles 6y agoExactly this is what I was thinking. We currently have a workflow engine that is event driven + a projection (think: CQRS), and it’s fairly unwieldy. Most specifically, the business logic is defined all over the place, and I was wondering whether a rule engine would make it easier to define the constraints and business logic to act upon these events.
- jdmichal 6y agoHave you looked into something like BPMN + DMN? BPMN provides workflow modeling and basic decisions, and DMN provides decision tables which can implement more complex rules. There are a couple frameworks which can work on top of that to provide a system implementation.