<?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>Interface should be a rule</title><link>https://community.appian.com/discussions/f/general/20989/interface-should-be-a-rule</link><description>I just ran accross an interface that throws errors when I try to test it. I noticed that it is running a!queryEntity so it should be an expression rule. Is there an easy way to change it from an interface to an expression rule?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface should be a rule</title><link>https://community.appian.com/thread/81747?ContentTypeID=1</link><pubDate>Mon, 17 May 2021 21:13:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b69c9eb3-4ddd-4f90-8da5-86d4b5a02322</guid><dc:creator>helmuta0001</dc:creator><description>&lt;p&gt;I was afraid of that.&amp;nbsp; Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface should be a rule</title><link>https://community.appian.com/thread/81740?ContentTypeID=1</link><pubDate>Mon, 17 May 2021 19:40:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cbece49-a732-41ce-9fa2-d7f0cfcc7b45</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;We could use a bit more info here.&amp;nbsp; What are the errors?&amp;nbsp; What makes you think it should be an expression rule just because it&amp;#39;s running an &lt;em&gt;a!queryEntity()&lt;/em&gt;?&amp;nbsp; The real determination for this would be whether the main result of the evaluated expression is a visual element such as a component or form element (form layout, section, box, etc, or any single input component or array thereof).&lt;/p&gt;
&lt;p&gt;If it really does need to be an expression rule, the simplest (and probably only) solution is to copy the code into a new expression rule editor and save it there instead.&amp;nbsp; There&amp;#39;s no direct or supported way to change interfaces to expression rules or vice versa.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>