<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Executing a rule whose name is saved in a DB column from Process Model Script Node&amp;#39;s Expression</title><link>https://community.appian.com/discussions/f/rules/21645/executing-a-rule-whose-name-is-saved-in-a-db-column-from-process-model-script-node-s-expression</link><description>Rule name is available (retrieved from DB ) in as pv!integration.mappingRule.I am trying to run this rule in Node output expression rule 
 I have tried various options like 
 
 or 
 
 or 
 
 
 None of them works . Any idea , how to make this work? Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Executing a rule whose name is saved in a DB column from Process Model Script Node's Expression</title><link>https://community.appian.com/thread/84712?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 08:32:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f22ed42-c218-4119-a511-5de2f4706826</guid><dc:creator>MikeMiracle</dc:creator><description>&lt;p&gt;Thanks a lot Peter Lewis. worked like a charm !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Executing a rule whose name is saved in a DB column from Process Model Script Node's Expression</title><link>https://community.appian.com/thread/84636?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 19:12:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60502fa8-38bf-4174-af50-d57bbe97d4b9</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Your best bet is to create a mapping rule in Appian that calls the rule that corresponds to whatever text value you store in the database. For instance:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;choose(
  wherecontains(
    ri!ruleName,
    {&amp;quot;ruleOne&amp;quot;, &amp;quot;ruleTwo&amp;quot;, &amp;quot;ruleThree&amp;quot;}
  ),
  rule!ruleOne,
  rule!ruleTwo,
  rule!ruleThree
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please do not use the eval function - it is undocumented, unsupported, and is not guaranteed to behave in the manner you want or expect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Executing a rule whose name is saved in a DB column from Process Model Script Node's Expression</title><link>https://community.appian.com/thread/84634?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 18:49:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73565fab-2872-4884-aee4-abb1996f6a3a</guid><dc:creator>MikeMiracle</dc:creator><description>&lt;p&gt;Thanks Stefan Helzle, I am aware that eval is an internal function. I couldn&amp;#39;t find another way though. We are trying to execute dynamic rules here. This implementation supports number of countries with each country has a different mapping rule. Hope that makes sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Executing a rule whose name is saved in a DB column from Process Model Script Node's Expression</title><link>https://community.appian.com/thread/84633?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 18:20:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f687502-f869-4a76-8949-f7a16d650616</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;May I ask what you want to achieve?&lt;/p&gt;
&lt;p&gt;BTW, eval() is a not supported private function and should not be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>