<?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>Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/discussions/f/process/20713/appian-19-4-node-timer-exception-with-rule-expression</link><description>Hello all, 
 Is it not possible to use a Rule Expression as the expression that defines the configuration of a Timer Event? 
 We have an issue with setting up a timer based Exception Flow on a User Input task where the timer is defined as &amp;quot;Skip this node</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80748?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 06:30:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c9a99f4-fc83-42ad-88e7-f74a7937a8fb</guid><dc:creator>Thanos.Michos</dc:creator><description>&lt;p&gt;Chris, thanks for your help as well.&lt;/p&gt;
&lt;p&gt;We have shifted our implementation of the time event just as you have noted, directly using the caladddays function with a constant.&lt;/p&gt;
&lt;p&gt;However, with the link to the KB article that Stefan has sent we have understood the cause of this issue which was the use of keyword syntax when calling the rule expression. This is not supported in events and various other components, including case as the ones you have indicated in your note.&lt;/p&gt;
&lt;p&gt;Again, thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80747?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 06:27:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fab102c-0bf2-43fe-9ea1-59867d4120c6</guid><dc:creator>Thanos.Michos</dc:creator><description>&lt;p&gt;Stefan, thank you for this very helpful link. You have helped a lot in this case.&lt;/p&gt;
&lt;p&gt;It makes it clear that the issue is due to calling the rule expression using keyword syntax, which we do. And it states clearly in Appian&amp;#39;s documentation that this is not supported in events, process reports and various other components.&lt;/p&gt;
&lt;p&gt;I also considered adding a script task before the user task, but the expression was too simple to add another node to the process.&lt;/p&gt;
&lt;p&gt;And to answer you last question, apart from having to integrate with other systems to retrieve some pieces of information before the task is shown to the user, we have requirements (for reporting purposes) to depict that a new business process was initiated and that the initial submission was not completed by the user. So we do a bit of work before the user task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80735?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 15:08:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b630197-651e-404f-8a1e-1cd150d62802</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Agree with Stefan that while expressions can be used for escalation timers, they are very picky.&amp;nbsp; Especially in the use of expressions containing localVariables, with() or load(), we will calculate the exception timer in a prior script task into pv! as he suggests.&lt;/p&gt;
&lt;p&gt;If you want to ensure the timer is more dynamic, include a constant with the day value - and you&amp;nbsp;can use this directly in the User Input Task:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;caladddays(ri!entryDate, cons!YOUR_CONSTANT_HERE)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80732?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 07:20:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4efdc974-d631-4961-b894-9f59a1ff25bb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think this is a known issue with doing date/time calculations in process nodes via expressions. Add a script task just before the user task do the calculation and store it into a PV. Then use the PV in the exception. Or omit keyword syntax as described here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.appian.com/support/w/kb/1239/kb-1794-details-error-eval-reason-index-error-thrown-when-using-escalations-timers-and-exception-flows"&gt;community.appian.com/.../kb-1794-details-error-eval-reason-index-error-thrown-when-using-escalations-timers-and-exception-flows&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Out of curiosity. Why do you need an exception in that task? Following your description this is just the start of that process. Why not a start form?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80729?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 05:27:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ebf2bbb-47fb-4716-8a0a-ba852b34ce1f</guid><dc:creator>Thanos.Michos</dc:creator><description>&lt;p&gt;The status of the user task is Paused and the status of the process instance is Paused by Exception. The process history shows the task as assigned.&lt;/p&gt;
&lt;p&gt;The error that is displayed in the process monitoring view of appian designer is &amp;quot;ERROR:EVAL:@reason=index&amp;quot;. The db log of the execution engine running that process instance has the following ERROR entries.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2021-04-02 07:39:50 [PX021] {pe4747.kdb ,3655838} (Default) ERROR .a.p.PROCESS.i &amp;quot;Event Mapping Runtime 149, attached to Node instance 17823: &amp;#39;LWS_formStep10&amp;#39;, Process 536915545: &amp;#39;LWS Submit New Case&amp;#39;&amp;quot; &amp;quot;Timer absolute schedule expression (=#&amp;quot;_a-0000e616-f8b9-8000-928d-010000010000_743179&amp;quot;(entryDate: pv!caseBasicData.entryDate)): ERROR:EVAL:@reason=index&amp;quot;&lt;br /&gt;2021-04-02 07:39:50 [PX021] {pe4747.kdb ,3655838} (Default) ERROR .events.timer &amp;quot;Timer event errors: 209, Error Messages: &amp;quot;ERROR:EVAL:@reason=index&amp;quot;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80720?ContentTypeID=1</link><pubDate>Sun, 04 Apr 2021 10:54:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75a990ee-dde3-4a32-afd5-49f771c13353</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you see any errors in process instance details? Is the task skipped in task history?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80718?ContentTypeID=1</link><pubDate>Sun, 04 Apr 2021 07:38:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50d5dd02-4cf6-425b-b0ff-4821fa73cbc5</guid><dc:creator>Thanos.Michos</dc:creator><description>&lt;p&gt;Hello Chris,&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;The Rule Expression, named &amp;quot;LWS_timerStep10&amp;quot; has a single rule input &amp;quot;entryDate&amp;quot; of type Date and Time.&lt;/p&gt;
&lt;p&gt;Its definition is the following simple expression: caladddays(ri!entryDate, 5)&lt;/p&gt;
&lt;p&gt;Then, the rule expression &amp;quot;LWS_timerStep10&amp;quot; is used inside the exception timer definition of the User Task, which is enabled through Activity Chaining, meaning the user clicks on an Action and the process leads to this User Task through activity chaining.&lt;/p&gt;
&lt;p&gt;That is when we (as users) see the error described in my original note. Just to rule any possible security issues, the same error is thrown for both Basic Users and System Administrators.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I mentioned in my original note, if we use the definition of the Rule Expression directly in the exception timer then everything works just fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian 19.4 Node Timer Exception with Rule Expression</title><link>https://community.appian.com/thread/80697?ContentTypeID=1</link><pubDate>Fri, 02 Apr 2021 17:26:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fac2065-6d51-4c95-a5cd-2c595cefbc1d</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;We utilize rules to determine exception flows in many locations without issues.&amp;nbsp; Are you able to share your rule definition?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>