{"id":3559,"date":"2023-04-12T15:39:28","date_gmt":"2023-04-12T15:39:28","guid":{"rendered":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/"},"modified":"2023-04-12T15:39:28","modified_gmt":"2023-04-12T15:39:28","slug":"euclid-studio-navigating-the-business-rules-node","status":"publish","type":"post","link":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/","title":{"rendered":"Euclid Studio: Navigating the Business Rules Node"},"content":{"rendered":"<p>Using the Business Rules Node in Euclid Studio is an extremely effective way of managing business rules, giving you total control over their scope and impact. It\u2019s important to understand the tool\u2019s options and settings before adjusting or implementing new rules. In this example, we\u2019ll go through the basic options and settings of the node.<\/p>\n<p><strong>1. Output Options:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1055 aligncenter\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg\" alt=\"\" width=\"596\" height=\"389\" \/><\/p>\n<p>The name of the column that contains the output of your business rules is the Output Column Name. You can also select the option to trigger the output rule as an additional column by clicking the radio button. This is useful for tracking what rules are hitting each row of your data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1056 aligncenter\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E2-min.jpg\" alt=\"\" width=\"416\" height=\"199\" \/><\/p>\n<p><strong>2. <\/strong><strong>Adding a Rule:<\/strong><\/p>\n<p>To create a rule, click the \u2018Add Rule\u2019 button to open a new rule dialog within the node. The rules are effectively cascading IF statements, where you can set conditions using the UI. Under the IF section, you can use the dropdown menus to select a column, condition, and value. If the condition is met, the value will equal what is set in the THEN section. In the following example, we\u2019re creating a rule that overrides a price for a specific item ID\/SKU:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1057 aligncenter\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E3-min.jpg\" alt=\"\" width=\"872\" height=\"482\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>The Default Rule is what happens when no rules\u2019 conditions are met. This can be a static value (a number or a string), or a value based on the data using javascript. In this example, we\u2019re using basic javascript to pull the value from the CURRENT_PRICE column using \u2018row.get\u2019. Any column name can be substituted here in place of CURRENT_PRICE.<\/li>\n<li>The Name of the rule labels the rule within the node, and what will be output if you selected to output the \u2018triggered rule\u2019 in the previous step.<\/li>\n<li>The Business Purpose is an optional description of what the rule is meant to accomplish.<\/li>\n<li>Setting an effective start and end date can allow you to only have the rule enforced for a specific time period. The end date can be left blank to enforce the rule indefinitely.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Rule logic:<\/strong><\/p>\n<p>A few additional points to note:<\/p>\n<ul>\n<li>Conditions can be added to work together using the \u2018Add Condition\u2019 button. The AND\/OR buttons allow you to choose between the logical relationship between the conditions.<\/li>\n<li>Adding a group allows for multiple groups of conditions, for example if two conditions have an AND relationship, and others have an OR.<\/li>\n<li>Javascript can also be used to create a custom expression, enabled by the radio button. For example:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1053 aligncenter\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E4-min.jpg\" alt=\"\" width=\"806\" height=\"127\" \/><\/p>\n<p>There are also some options at each rule\u2019s header:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1054 aligncenter\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E5-min.jpg\" alt=\"\" width=\"512\" height=\"34\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>The arrow on the left can be used to expand\/collapse the rule dialog.<\/li>\n<li>The rules are processed from top to bottom, so moving up\/down a rule can change it\u2019s priority. This is useful if there are scenarios where multiple rules can be hit for a single row.<\/li>\n<li>The Duplicate function allows you to copy a rule \u2013 this can save time if a new rule is similar to an existing rule.<\/li>\n<li>Delete will remove the rule from the node.<\/li>\n<li>The \u2018Active\u2019 radio button can be used to disable\/enable rules at any time.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Using the Business Rules Node in Euclid Studio is an extremely effective way of managing business rules, giving you total control over their scope and impact. It\u2019s important to understand the tool\u2019s options and settings before adjusting or implementing new rules. In this example, we\u2019ll go through the basic options and settings of the node.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[27],"tags":[33],"class_list":["post-3559","post","type-post","status-publish","format-standard","hentry","category-quebit-value","tag-euclid-studio"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Euclid Studio: Navigating the Business Rules Node - QueBIT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Euclid Studio: Navigating the Business Rules Node - QueBIT\" \/>\n<meta property=\"og:description\" content=\"Using the Business Rules Node in Euclid Studio is an extremely effective way of managing business rules, giving you total control over their scope and impact. It\u2019s important to understand the tool\u2019s options and settings before adjusting or implementing new rules. In this example, we\u2019ll go through the basic options and settings of the node.&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/\" \/>\n<meta property=\"og:site_name\" content=\"QueBIT\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-12T15:39:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg\" \/>\n<meta name=\"author\" content=\"agoddard\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"agoddard\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/\"},\"author\":{\"name\":\"agoddard\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#\\\/schema\\\/person\\\/e52d72da0fd2f5f70d189343fe4f5084\"},\"headline\":\"Euclid Studio: Navigating the Business Rules Node\",\"datePublished\":\"2023-04-12T15:39:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/\"},\"wordCount\":531,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/E1-min.jpg\",\"keywords\":[\"Euclid Studio\"],\"articleSection\":[\"QueBIT Value\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/\",\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/\",\"name\":\"Euclid Studio: Navigating the Business Rules Node - QueBIT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/E1-min.jpg\",\"datePublished\":\"2023-04-12T15:39:28+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#\\\/schema\\\/person\\\/e52d72da0fd2f5f70d189343fe4f5084\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#primaryimage\",\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/E1-min.jpg\",\"contentUrl\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/E1-min.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/euclid-studio-navigating-the-business-rules-node\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Euclid Studio: Navigating the Business Rules Node\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#website\",\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/\",\"name\":\"QueBIT\",\"description\":\"QueBIT\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#\\\/schema\\\/person\\\/e52d72da0fd2f5f70d189343fe4f5084\",\"name\":\"agoddard\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g\",\"caption\":\"agoddard\"},\"sameAs\":[\"https:\\\/\\\/quebit.com\\\/askquebit\"],\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/author\\\/agoddard\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Euclid Studio: Navigating the Business Rules Node - QueBIT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/","og_locale":"en_US","og_type":"article","og_title":"Euclid Studio: Navigating the Business Rules Node - QueBIT","og_description":"Using the Business Rules Node in Euclid Studio is an extremely effective way of managing business rules, giving you total control over their scope and impact. It\u2019s important to understand the tool\u2019s options and settings before adjusting or implementing new rules. In this example, we\u2019ll go through the basic options and settings of the node.&hellip;","og_url":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/","og_site_name":"QueBIT","article_published_time":"2023-04-12T15:39:28+00:00","og_image":[{"url":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg","type":"","width":"","height":""}],"author":"agoddard","twitter_card":"summary_large_image","twitter_misc":{"Written by":"agoddard","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#article","isPartOf":{"@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/"},"author":{"name":"agoddard","@id":"https:\/\/quebit.com\/askquebit\/#\/schema\/person\/e52d72da0fd2f5f70d189343fe4f5084"},"headline":"Euclid Studio: Navigating the Business Rules Node","datePublished":"2023-04-12T15:39:28+00:00","mainEntityOfPage":{"@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/"},"wordCount":531,"commentCount":0,"image":{"@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#primaryimage"},"thumbnailUrl":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg","keywords":["Euclid Studio"],"articleSection":["QueBIT Value"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/","url":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/","name":"Euclid Studio: Navigating the Business Rules Node - QueBIT","isPartOf":{"@id":"https:\/\/quebit.com\/askquebit\/#website"},"primaryImageOfPage":{"@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#primaryimage"},"image":{"@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#primaryimage"},"thumbnailUrl":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg","datePublished":"2023-04-12T15:39:28+00:00","author":{"@id":"https:\/\/quebit.com\/askquebit\/#\/schema\/person\/e52d72da0fd2f5f70d189343fe4f5084"},"breadcrumb":{"@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#primaryimage","url":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg","contentUrl":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2020\/06\/E1-min.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/quebit.com\/askquebit\/euclid-studio-navigating-the-business-rules-node\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/quebit.com\/askquebit\/"},{"@type":"ListItem","position":2,"name":"Euclid Studio: Navigating the Business Rules Node"}]},{"@type":"WebSite","@id":"https:\/\/quebit.com\/askquebit\/#website","url":"https:\/\/quebit.com\/askquebit\/","name":"QueBIT","description":"QueBIT","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/quebit.com\/askquebit\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/quebit.com\/askquebit\/#\/schema\/person\/e52d72da0fd2f5f70d189343fe4f5084","name":"agoddard","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g","caption":"agoddard"},"sameAs":["https:\/\/quebit.com\/askquebit"],"url":"https:\/\/quebit.com\/askquebit\/author\/agoddard\/"}]}},"_links":{"self":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts\/3559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/comments?post=3559"}],"version-history":[{"count":0,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts\/3559\/revisions"}],"wp:attachment":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/media?parent=3559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/categories?post=3559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/tags?post=3559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}