Skip to main content

businessRuleJDM

Convert a business rule to JSON Decision Model (JDM) format for execution in compatible rule engines.

Returns the standardized JDM representation that can be consumed by GoRules Zen Engine and other compatible rule execution platforms. The JDM format includes all rule logic, conditions, actions, and metadata required for runtime execution.

Possible errors:

  • BUSINESS_RULE_NOT_FOUND: Business rule with the specified ID does not exist
  • BUSINESS_RULE_TO_JDM_ERROR: Failed to convert business rule to JDM format due to invalid rule structure
businessRuleJDM(
id: ID!
language: String = "EN"
): JSONObject!

Arguments

businessRuleJDM.id ● ID! non-null scalar

Unique identifier of the business rule to convert to JDM format

businessRuleJDM.language ● String scalar

Language code for localized content generation (ISO 639-1 format, defaults to 'EN')

Type

JSONObject scalar

The JSONObject scalar type represents JSON objects as specified by ECMA-404.