<?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>expression rule vs decision</title><link>https://community.appian.com/discussions/f/best-practices/12327/expression-rule-vs-decision</link><description>Hi, 
 I know decision designer is new feature. 
 Would like to check what are best use cases for writing expression rules and best use cases write decision rules? 
 Where are these decision rules are going to stored. Do we have access these tables 
 Can</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/56055?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 05:35:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eb31c57-22a2-42cb-a690-02ee5e20e3a1</guid><dc:creator>Narmada</dc:creator><description>Hi Krisk,&lt;br /&gt;
&lt;br /&gt;
Expression rule is a user defined reusable way &amp;amp; manipulating data that can be called across multiple objects throughout Appian. We create expression rule we don&amp;#39;t want to create same business logic over and over. Expression rule typically take one or more inputs in order them to evaluate and return a results for output.&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.1/Expression_Rules.html"&gt;docs.appian.com/.../Expression_Rules.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Decision:  I would suggest you to check the below latest version documentation link&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.1/Decisions.html"&gt;docs.appian.com/.../Decisions.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/56033?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 18:23:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03f7f18a-8e0a-410e-8233-d7455c5662e1</guid><dc:creator>namratak356</dc:creator><description>Hi , &lt;br /&gt;
When we have many factors which are influencing value of a variable and writing them in if else code becomes lengthy,then its always  better to write decision rule. Decision rule has better readability and easily adaptable to changes in requirement. Decision rule can be called in any expression rule . &lt;br /&gt;
Thanks&lt;br /&gt;
Namrata&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/56030?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 16:01:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:124177fe-eb07-4d9c-ba96-45d2a06d794d</guid><dc:creator>PhilB</dc:creator><description>Just to add to this - worth considering that decision tables give zero audit history for decisions other than the version history, so if knowing what the settings were in the past is important, decision tables may not suit. That said, it&amp;#39;s possible to use something like from/to (implementation) dates so that a setting is used depending on the date that is passed in, but this may not suit all implementations.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/56028?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 15:34:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3900b303-7ead-463f-a896-5c0b2e79bf5c</guid><dc:creator>ChristineLHutchison</dc:creator><description>I agree with Mike. &lt;br /&gt;
I recommend / use decision tables when they are &amp;#39;clear cut&amp;#39; and replace a &amp;#39;simple nested if&amp;#39;. When I need to do more complex things (need things to be expression-able, I use expression rules.&lt;br /&gt;
&lt;br /&gt;
Decision Tables are a step to give more power to the &amp;#39;Citizen Developer&amp;#39;. So, in workshops with the business, they are great. In actual implementation, I use them where very straight forward.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/56025?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 14:38:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:167c2d80-c7ce-4c13-a34a-ba4a95558bd3</guid><dc:creator>Sunil Zacharia</dc:creator><description>Hi krisk,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the use cases where we implemented a Decision table was to set the &amp;quot;required&amp;quot;, &amp;quot;disabled&amp;quot; and few other properties of UI form components.&lt;br /&gt;
&lt;br /&gt;
The UI form consisted of several fields that required user indexing.  Based on user selection of a couple of fields some fields had to be mandatory and some other fields had to be disabled and so on...&lt;br /&gt;
&lt;br /&gt;
A decision table was created that takes two fields as input and then returns multiple boolean values, each of which indicate a certain property (required/disabled/etc.,) for a SAIL component.&lt;br /&gt;
&lt;br /&gt;
The Business Analysts in the team were given access to this decision table to configure the scenarios as per the business requirement. &lt;br /&gt;
&lt;br /&gt;
Since using a decision table is straight forward and real-time, it is very convenient to maintain business logic and adapt to frequent requirement changes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Sunil Zacharia&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/55368?ContentTypeID=1</link><pubDate>Mon, 21 May 2018 06:57:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26c6c78a-2caa-4341-b446-866ac14fa048</guid><dc:creator>ravalik</dc:creator><description>Hi krisk,&lt;br /&gt;
Expression rules are mainly used to build the business logic.Expression rules can be reused across multiple objects throughout the system.There are 2 ways to test the rule in the expression rule designer adhoc testing and test cases.Expression rules commonly validate  that a value is what is expected in a process or interface. It is also used to manipulate a complex data type or Appian object input which could result in varied outputs. Where as for Decision:&lt;br /&gt;
&lt;br /&gt;
Decision: There are times where you might want a Decision to return more than just a single type of value. For example, you might have an interface where users apply for a credit card. Using the information they provided you can decide whether they get approved for the card or not, but you can also determine what message to display on the next page of the form, all from a single Decision.&lt;br /&gt;
(&amp;quot;Decisions can be exposed to certain users in a limited editing mode that allows these users to update the business rules of the Decision but not change the structure of the Decision (to limit the affects of all the other application objects using the Decision&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
I would suggest you to create your own  expression rule and decision by following the steps which were mentioned in the documentation, so that you will get to know the difference in detail.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/55352?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 20:34:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8aa7e3dc-9c04-4c0d-b981-e525d2c7a7e0</guid><dc:creator>Mike Schmitt</dc:creator><description>Decisions sound like a good idea on paper, and I&amp;#39;m sure there are a ton of real-world use cases, but every time I&amp;#39;ve sat down to implement something using a decision, i&amp;#39;ve ended up having to bail out and do it in a traditional expression rule, either because decisions aren&amp;#39;t expressionable, or just plain not flexible enough.  I&amp;#39;d love to hear how others have gotten around this, becuase maybe I&amp;#39;ve been missing out.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/55351?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 20:17:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:936ff2ca-5088-4715-8f12-5886d8fd5d10</guid><dc:creator>rajats246</dc:creator><description>I agree with Chandu , there are many scenarios where we need to write lots of logic to implement if-else-if condition and it also decreases the readability of code .It also provides notes column for documentation purpose.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/54560?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 08:09:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6dd62b68-6d4c-45a0-8f3b-12be0da83836</guid><dc:creator>PhilB</dc:creator><description>An updated link: &lt;a href="https://docs.appian.com/suite/help/18.1/Decisions.html"&gt;docs.appian.com/.../Decisions.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/54559?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 07:51:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6529e5db-db77-4ca8-9ab0-9b21361cb446</guid><dc:creator>krisk</dc:creator><description>First link is not working.  &lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule vs decision</title><link>https://community.appian.com/thread/54549?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 05:59:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:847b5490-de52-4922-a819-aba2538794a1</guid><dc:creator>chandu</dc:creator><description>Hi Krisk,&lt;br /&gt;
&lt;br /&gt;
The documentation clearly mentions the details of the decision tool.&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.1/Appian_Decisions.html."&gt;docs.appian.com/.../Appian_Decisions.html.&lt;/a&gt;&lt;br /&gt;
I prefer using this when compared to Expression rules.&lt;br /&gt;
1. Easy of Configuring the business rules when compared to Expression rules.&lt;br /&gt;
2. Easy to debug.&lt;br /&gt;
3. Easily Understandable to the other developers.&lt;br /&gt;
&lt;br /&gt;
Apart from the above User can configure dynamic process execution based on the set of businessrules. This will avoid complex process model design with XOR gate and with the help of this, we can avoid the changes to PM and publishing that PM.&lt;br /&gt;
&lt;br /&gt;
I would suggest to dive deeper in to that link so that you will get good picture of it.&lt;br /&gt;
&lt;br /&gt;
You can create a rule folder for these and store them in that folder.&lt;br /&gt;
You can also call the decision rule like any other expression rule.&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.1/Decisions.html#call-a-decision-from-another-expression"&gt;docs.appian.com/.../Decisions.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Where are these decision rules are going to stored. Do we have access these tables    -- I&amp;#39;m not sure where they are storing these, lets see other practitioners are aware of these.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>