<?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>When are assignment rules evaluated?</title><link>https://community.appian.com/discussions/f/process/10286/when-are-assignment-rules-evaluated</link><description>Does anyone know when assignment rules are evaluated? 
 We have an expression rule that returns a Group based on a set of parameters. This expression rule can be used for swimlane assignments, attended task assignments and for process model alerts. In</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: When are assignment rules evaluated?</title><link>https://community.appian.com/thread/97775?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 21:46:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49932689-adeb-4c81-b404-aeb11163867a</guid><dc:creator>monag4319</dc:creator><description>&lt;p&gt;&lt;span&gt;These are some good questions.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When are assignment rules evaluated?</title><link>https://community.appian.com/thread/97687?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 16:37:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a70b0dec-92b3-4779-99d9-ec376b6ae8ff</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Agree with the others that the assignment expression is evaluated at &lt;em&gt;task start time&lt;/em&gt;, regardless of if it is in the node assignment tab or in the swim lane assignment.&amp;nbsp; So with either configuration, if the group is updated and the task restarts later, it will utilize the new assignee set.&lt;/p&gt;
&lt;p&gt;I assume the same for the process model alerts recipients, although we have never tested - all our alerts come to system admins only.&lt;/p&gt;
&lt;p&gt;You could test this out by creating a simple model with a script task with a bad expression such as &amp;quot;=if(true,false)&amp;quot; (incorrect number of parameters).&amp;nbsp; Start the process for debugging, not the recipients, update the group, manually start the bad node again in the active/test process to see if the recipients changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When are assignment rules evaluated?</title><link>https://community.appian.com/thread/45434?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 12:55:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04d3ecc5-37d7-4ec2-a59c-edb227d78b8d</guid><dc:creator>nathan.schmitz</dc:creator><description>&lt;p&gt;Rules that are called within the assignment tab of the swim lane are only evaluated when attended nodes within that lane are reached. Likewise alert expressions are only evaluated when alerts are generated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When are assignment rules evaluated?</title><link>https://community.appian.com/thread/45412?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 14:15:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:29681e08-08f9-4d47-b924-50e45f3413f5</guid><dc:creator>mk</dc:creator><description>These are some good questions. The documentation does not contain a whole lot about your specific questions. Like sergeiz has mentioned, if you use regular task assignment in your User Input Task node, it will get reevaluated every time that node is started. In other cases (swimlane assignment or throwing an alert) I believe it would reevaluate every time as well instead of initially when starting the process. &lt;br /&gt;
&lt;br /&gt;
Best way would be to try it out, start the process, change the recipients in the expression rule and then loop around to that same User Input Task node again.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When are assignment rules evaluated?</title><link>https://community.appian.com/thread/45410?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 12:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ce99185-4eb6-48a2-9099-636261af0610</guid><dc:creator>sergeiz</dc:creator><description>I think the assignment expression is evaluated once for a task when it becomes active in a process. Afterwards value is fixed and saved in the process history.&lt;br /&gt;
&lt;br /&gt;
Other options would be very strange as process can take days, and the expression result can depend on the external context. For example, the expression rule can take someone from a particular group, but the group member can be added or removed from the group.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>