Skip to main content
Skip table of contents

Business Rules Mapping

Overview

This guide provides step-by-step instructions on how to register business rules, manage components, and ensure proper integration within the DCM platform. The goal is to streamline rule management by reducing the number of items in each "Rule" or "Business Rule" component.

Note: Unlike previous versions, DCM 8.1 does not filter business rules by Tags.

Registering a New Business Rule

Only business rules deployed in AppBase can be registered in DCM.

image-20250227-113858.png

There are two ways to register a business rule:

  1. Setup → Advanced → Business Rules (requires Developer or Administrator roles)

  2. Experimental → Rules → Business Rules (requires Developer role)

Required Parameters:

  • Name – Matches the name of the deployed rule.

  • Display Name – A user-friendly synonym for display purposes.

  • Code – Unique identifier (e.g., ROOT_XXX).

  • Calculated Code – Automatically assigned code (F_XXX for functions, ROOT_XXX for others).

  • Description – Matches the deployed rule's description.

  • Function – Deployment type (0 for non-function, 1 for function).

  • Rule Type – Type of rule:

    • 1 - C#

    • 2 - SQL

    • 3 - SQL scalar

    • 4 - SQL non-query

    • 7 - Extension

    • 8 - SQL paginated

Note: The Display Name can be modified later.

Registering a New Component

To register a new component, go to:
Experimental → Rules → Components (requires Developer role).

image-20250227-114055.png

Required Parameters:

  • Name – The label displayed in the UI (e.g., "Case Type - Basic - Default Workbasket - Business Rule").

  • Permanent Code – A unique component code (see naming conventions below).

  • Filter - Deployment Type – Filters based on rule deployment type (0 for non-function, 1 for function, NULL for all).

  • Filter - Rule Type – Filters by rule type (1-8, NULL for all).

  • Description – Additional notes (optional).

Note: The Permanent Code cannot be changed after creation.

Naming Conventions for Component Codes

Follow these rules for consistency:

  • Must be unique.

  • Use UPPERCASE.

  • Keep it concise and descriptive.

  • Format: <Module>_<Submodule>_<Action>

    • Example: CT_CE_EXEC_RULE for "Case Type - Common Events - Execute Business Rule".

Adding a New Component to MDM

  1. Register a new component in DCM. (See: Registering a New Component)

  2. Link business rules to the component. (See: Linking a Business Rule to a Component)

  3. Update MDM form/search with the following custom JS:

MDM Form:

Linked Rules:

image-20250227-114502.png

Form builder - Custom JS for Custom Field:

CODE
{
    xtype: 'ecx-comboDeployedRules_v2',
    componentCode: 'FB_SAMPLE',
    fieldLabel: 'Test Custom Deployed Rules',
    storeConfig: {
      autoLoad: true,
    },
}

Result:

image-20250227-115354.png

MDM Search:

Linked Rules:

image-20250227-115317.png

Search builder - Custom JS for Query Widget:

CODE
{
    xtype: 'ecx-comboDeployedRules_v2',
    componentCode: 'SB_SAMPLE',
    fieldLabel: 'Test Custom Deployed Rules',
    storeConfig: {
      autoLoad: true,
    },
}

Result:

image-20250227-115459.png

Linking a Business Rule to a Component

Business rules can be linked to components through multiple methods:

  1. Setup → Any Business Rule Component → Mapping Icon

    image-20250227-115652.png
  2. Setup → Advanced → Business Rules → Modify Components / Link to Components

  3. Experimental → Rules → Business Rules → Modify Components / Link to Components

  4. Experimental → Rules → Components → Modify Rules / Link to Rules

Component Filters

Each component has two filters to ensure correct rule mapping:

  • Deployment Type

  • Rule Type

Example mappings:

Component Code

Rule Types Allowed

CT_BASIC_RETRIEVE

SQL non-query functions

CT_CE_EXEC_RULE

Any rule type

CT_CE_CONDITIONS_VALIDATION

SQL non-query or SQL scalar with a Result parameter


Handling Deleted or Unregistered Business Rules

If a business rule is missing from a component (crossed out).

image-20250227-120139.png

It may be due to:

  1. The rule not being registered in DCM.

  2. The rule being deleted from AppBase.

Steps to correctly register a business rule in DCM's registry and link to a component

  1. Check if the rule is registered in DCM.

  2. Add the rule if missing.

  3. Map the rule to a component.

  4. The rule is now available for configuration.

Steps to correctly register a business rule that was deleted in AppBase

  1. Check if the rule is missing from AppBase.

  2. Re-add and deploy the rule in AppBase.

  3. Verify the rule's visibility in components.

Changes to Rule Type or Deployment Type

If a rule’s type has changed in AppBase, it must be re-registered in DCM.

For DCM 8.2:
No additional steps are needed after deployment. The system will automatically synchronize via ROOT_UTIL_SYNCRULE.


Data Migration

There are two migration options for Business Rule components:

  • Initial Migration – Transfers all system-flagged components and rules (System=1).

  • Full Migration – Transfers all components and rules.

Note: Partial migration is not supported.


Limitations

  • A business rule cannot be deleted if linked to a component.

  • A component cannot be deleted if linked to business rules.

  • Business rules with a System flag cannot be removed from components.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.