<?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>How to create an expression rule in which pass another exp rule as rule input</title><link>https://community.appian.com/discussions/f/general/28793/how-to-create-an-expression-rule-in-which-pass-another-exp-rule-as-rule-input</link><description>Hi, 
 
 Requirement is to create one expression rule in which I need to pass another expression rule as rule input, 
 
 I do not know what type of rule input to define. 
 
 Use Case - Have integration, need to call through expression rules, if integration</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to create an expression rule in which pass another exp rule as rule input</title><link>https://community.appian.com/thread/113361?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 16:54:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7649b5bc-1dcc-4811-915c-ef93bb052015</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;There are ways to call expression rules dynamically but really doubt it applies to your use case. I think Mike&amp;#39;s suggestion is your best bet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create an expression rule in which pass another exp rule as rule input</title><link>https://community.appian.com/thread/113359?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 15:24:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34e12b60-4aac-41a3-a5fa-5d907a9de8ad</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is this:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.1/expression-advanced-evaluation.html"&gt;https://docs.appian.com/suite/help/23.1/expression-advanced-evaluation.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But I am not sure whether that fits your use case. In general, you can pass references to expressions to a rule input of type &amp;quot;ANY&amp;quot;.&lt;/p&gt;
&lt;p&gt;In this&amp;nbsp;blog post, I also explain how to use this feature:&amp;nbsp;&lt;a href="https://appian.rocks/2022/09/19/building-customisable-components/"&gt;https://appian.rocks/2022/09/19/building-customisable-components/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create an expression rule in which pass another exp rule as rule input</title><link>https://community.appian.com/thread/113357?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 15:14:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fef207c9-b623-49a4-b184-044827d0ff75</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The best way to do this is to build a process model where the integration is called directly from the appropriate &lt;em&gt;&lt;strong&gt;smart service node&lt;/strong&gt;&lt;/em&gt;, and if it fails, handle it with a process loop (increment a counter and have the loop give up after a certain number).&amp;nbsp; You can even add a 5 or 10 second timer in between each try.&lt;/p&gt;
&lt;p&gt;I expect the approach you&amp;#39;re trying in which you do it all within some complex nested expression structure is going to result only in frustration on your end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create an expression rule in which pass another exp rule as rule input</title><link>https://community.appian.com/thread/113356?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 14:58:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17a31d98-b6d0-45ea-8f9b-af2a210b8631</guid><dc:creator>shreekrit518231</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have many integrations object&amp;nbsp;exactly around 30 integrations and I need to try for all these integrations 5 times if any of this integration is failed,&lt;/p&gt;
&lt;p&gt;for this requirement - I thought to create one common exp rule and no of attempts to try, this common exp rule will call all the integration object dynamically and&amp;nbsp;try multiple times if integration giving us failed response.&lt;/p&gt;
&lt;p&gt;expression rules are mostly like&lt;strong&gt; filter, reject, apply&lt;/strong&gt; function, these are also accepting exp rules as rule input.&lt;/p&gt;
&lt;p&gt;Hope the requirement is clear now.&lt;/p&gt;
&lt;p&gt;any kind of guideline is appreciated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shree Krishna Tiwari&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create an expression rule in which pass another exp rule as rule input</title><link>https://community.appian.com/thread/113353?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 14:48:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26c18391-c2d1-4de9-98f3-26bf54d22cec</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m not really clear what you&amp;#39;re asking.&lt;/p&gt;
&lt;p&gt;In an expression rule you can, trivially easily, call another expression rule within it, either to populate a local variable, or to define the output (or some part of the output).&amp;nbsp; Likewise, any parent objects that call an expression rule, can call a different expression rule as part of the top-level expression rule call&amp;#39;s rule inputs, presuming that the &amp;quot;lower&amp;quot; rule returns an output that will be compatible with the data type of the rule input it&amp;#39;s being assigned into.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>