Business Rules

business_rules in @open-mercato/core

Business Rules Engine for defining, managing, and executing business logic and automation rules.

Ships with Open Mercato 0.9.0

On in a new app. Nothing to enable.

In an app from the empty preset

yarn mercato module enable @open-mercato/core --module business_rules

Then run yarn generate. Core is already installed, so nothing is downloaded.

Anatomy

ADDS 4 TABLES · 5 PERMISSIONS · EMITS 1 EVENT

Data

  • business_rules
  • rule_execution_logs
  • rule_sets
  • rule_set_members

API

Routes are not listed for built-in modules.

Security

business_rules.

  • view
  • manage
  • execute
  • view_logs
  • manage_sets

Events

business_rules.

  • emitsrule.execution_failed
  • subscribesrule.execution_failed

UI

  • 8 backend pages

Background

  • 1 CLI command

Not present: AI tools.

Not read: credentials and env, hosts (not in module-facts.v2.json).

From module-facts.v2.json in @open-mercato/cli 0.9.0. Read statically, not executed.