BusinessRule
Complete business rule workflow represented as a directed graph structure.
Each business rule consists of interconnected nodes (input, decision tables, output) connected by edges that define the execution flow. Decision tables contain multiple rows where each row represents a specific rule condition and corresponding action. The graph structure enables complex business logic modeling with branching, parallel processing, and conditional execution paths.
type BusinessRule {
id: ID!
shopId: Int!
type: BusinessRuleType!
name: [LocalizedString!]!
edges: [BusinessRuleEdge!]!
nodes: [IBusinessRuleNode!]!
createdAt: DateTime!
updatedAt: DateTime!
jdm: JSONObject!
}
Fields
BusinessRule.id
● ID!
non-null scalar
Unique identifier for the business rule within the system
BusinessRule.shopId
● Int!
non-null scalar
Store or shop identifier that owns this business rule, used for multi-tenant rule management
BusinessRule.type
● BusinessRuleType!
non-null enum
Classification of the business rule determining its domain context and application scope
BusinessRule.name
● [LocalizedString!]!
non-null object
Human-readable name of the business rule in multiple languages for international support
BusinessRule.edges
● [BusinessRuleEdge!]!
non-null object
Directed connections between nodes that define the execution flow and data path through the rule graph
BusinessRule.nodes
● [IBusinessRuleNode!]!
non-null interface
Processing nodes in the rule graph including input receivers, decision tables, and output generators
BusinessRule.createdAt
● DateTime!
non-null scalar
Timestamp when the business rule was initially created in the system
BusinessRule.updatedAt
● DateTime!
non-null scalar
Timestamp of the most recent modification to the business rule configuration or logic
BusinessRule.jdm
● JSONObject!
non-null scalar
Generate the JSON Decision Model (JDM) representation of this business rule for execution engines.
Returns the standardized JDM format containing all rule logic, conditions, and actions required for runtime execution in compatible rule engines.
Returned By
businessRule
query ● businessRuleCreate
mutation ● businessRuleUpdate
mutation ● incentiveRuleCreate
mutation ● incentiveRuleSetAction
mutation ● incentiveRuleSetOrderItemConditions
mutation
Member Of
BusinessRuleResponse
object