Salesforce Business Rules Engine
home
Remember learn rapidly the API first in Postman Salesforce Developers Collection
https://documenter.getpostman.com/view/12721794/TVmFjfuh#031e837c-2129-4e99-9f35-c794b313984c
https://help.salesforce.com/s/articleView?id=sf.business_rules_engine.htm&type=5
Business Rules Engine
Simplify determining eligibility or qualification and automate complex decision-making to find solutions faster using Business Rules Engine. The key components of Business Rules Engine are expression sets and lookup tables. Decision matrices and decision tables together constitute lookup tables.
REQUIRED EDITIONS
Available in: Lightning ExperienceAvailable in: Enterprise, Unlimited, and Developer Editions for Industries clouds that have Business Rules Engine enabled
Use a Business Rules Engine component or a combination of components to design business rules to provide automated business solutions in a workflow created using any tool. Business Rules Engine is a suite of services, components, and objects that can be used to create business rules that perform complex lookups and calculations.
Business Rules Engine components are available as part of Flows and OmniStudio. Also, you can use Connect APIs to integrate Business Rules Engine with any workflow created using custom or third-party tools. The workflow that you use to gather inputs passes the inputs to Business Rules Engine, which then returns the outcome to the workflow that called the Business Rules Engine component.
WORKFLOW TOOL OR PROCESSBUSINESS RULES ENGINE INTEGRATIONFlowExpression sets, decision matrices, and decision tables, which are components of Business Rules Engine, are available as actions in Flow. Invoke decision matrices and decision tables as part of an expression set that you invoke in a flow, or independently in flows.OmniStudioExpression sets and decision matrices are available as actions in OmniStudio. If Business Rules Engine is available for your cloud and you also have OmniStudio enabled, you can call Expression Set Action and Decision Matrix Action from integration procedures and OmniScripts.Custom or third-party toolsUse the Connect APIs in Business Rules Engine to invoke expression sets and lookup tables in workflows that you create in custom or third-party tools.How Business Rules Engine Components Integrate with Workflow Tools
Here's how the components in Business Rules Engine integrate and interact with workflows that are created using various tools and processes.
- Get Started with Business Rules EngineBusiness Rules Engine lets you build powerful, scalable lookups and calculations to automate complex decisions. Rules created with Business Rule Engine are easy to maintain, and integrate directly with Flow, OmniStudio, and third-party workflow tools using connect APIs.
- Learn and ExploreLearn how Business Rules Engine can help your business and customers. Understand its core functionality, create a trial org, and learn how to get started.
- Set Up Business Rules EngineConfigure your users to use Business Rules Engine and assign permission sets so that the users can access expression sets and lookup tables.
- Decision MatricesA decision matrix matches input values to a table row and returns the row's output values. Expression sets and various digital procedures can call decision matrices. Decision matrices accept JSON input from, and return JSON output to the digital processes that call the matrices. Decision matrices are useful for implementing complex rules in a systematic, readable manner.
- Decision Tables for Business Rules EngineDecision tables are complex lookup tables that read business rules with multiple inputs, and return multiple outputs for records in your Salesforce org, or for the values that you specify. Define business rules and let decision tables decide the outcome.
- Expression SetsExpression sets—the calculation engine of business rules—consist of a series of steps connected in a logical flow built from variables, constants, conditions, calculations, lookups, and aggregations. Expression sets accept JSON input from and return JSON output to the digital processes that call the sets.
- Decision Explainer for Expression SetsUse Decision Explainer with Business Rules Engine to show your users explanations for the results of steps in an expression set, and to capture action logs for expression set runs. Store explanations for expression steps in explainability message templates. And then add the templates to your expression set steps for which you want to show explanations. When you simulate the expression set version, switch to the Concise view option to preview how your users see the explanations.
- Business Rules Engine IntegrationsExpression sets and lookup tables—the Business Rules Engine components—can be called from Flow and Omnistudio. You can also use Business Rules Engine Business APIs to call these components from workflows that are created by using third-party tools.
- Calculation Matrix and Procedure Migration to Business Rules EngineTo use calculation procedures and calculation matrices from OmniStudio as Business Rules Engine components, migrate these OmniStudio components as expression sets and decision matrices. To migrate a calculation procedure as an expression set, and a calculation matrix as a decision matrix, use the CalculationMatrixMigrationService and CalculationProcedureMigrationService Apex classes.
- Business Rules Engine Default LimitsReview the default limits for Business Rules Engine components and their usage. If your business requires any default limits to be raised, contact Salesforce Customer Support for further guidance.