When it comes to the marrying of Web and business rules, we look at it from two different perspectives:
- Modeling of business rules
- Execution of business rules
Modeling on the Web
There are different ways to model your business rules. The common approaches use either Domain Specific Language (what we call Natural Language), Decision Table or Flow.
All of the business rule Web components should allow you to load existing business rules and present them on the Web page as well as allowing you to create a new one.
Web editor in Natural Language allows you to write your business rules in the same way you would talk about them in your spoken language.
When you are creating business rules in Domain Specific Language form you need:
- A text editor that simplifies the reading of rules, and the ability to differentiate between different values, terms and expression visually
- The capability to work with different types of simple and composite expressions: values, computational expressions, object properties and methods
- A simple way of extending the Domain Specific Language, ideally with no coding involved, as well as the ability to define and reuse new logic with or without parameters
- The provision of a mechanism to suggest or list what you can write: An ‘intellisense’ like popup list to provide suggestions
- The ability to write blocks of reusable logic and to reuse these indefinitely.
Flow: RuleFlow, DecisionFlow and WorkFlow
The flow editor component on the Web allows you to model different flows and workflows. Those flows can orchestrate handling an execution sequence of multiple rulesets (i.e., a group of business rules) or group of simple rules. Also, when it comes business logic, Workflow is important, so it allows you to model this as well.
The flow editor component allows:
- Toolbox: Drag and Drop items to a canvas to build flow and workflow
- Flexible API to retrieve nodes and manipulate properties
- Support for nested node (i.e., Scope, Transaction, etc.)
- Resizing and Moving of nodes
- Adding text/label to nodes and transitions
The decision table Web editor simply allows you to build a set of business rules in a tabular form so that they can share conditions and actions. It seamlessly integrates with business glossary to provide hints and options on filling the business rules.
The decision table Web editor can:
- Provide hints and options on business rules entry
- Change the order of conditions and actions with a simple drag and drop
- Change the order of rules with a simple drag and drop.
Execution of Business Rules
Web Components API
Please have a look at https://resource.flexrule.com/article-categories/rule-editors/ to learn more about their API.
Last updated January 14th, 2020 at 07:43 am, Published January 6th, 2016 at 07:43 am