<?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>Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/discussions/f/process/10202/is-there-a-way-to-generate-an-alert-when-a-process-has-zero-tasks-for-a-set-duration-of-time</link><description>For our use case, when zero tasks are generated for a process, there&amp;#39;s an underlying issue going on. Currently, it isn&amp;#39;t until our users notice they have 0 tasks and reach out to us that we are made aware. 
 
 Is there a way for Appian to pick up on a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45099?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 17:43:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8876e66-e408-4156-93c7-ba98852d25ec</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;&amp;gt; What we know: we know how many tasks are associated with a given process, so we can cross check against that [ (if activeTasks == 0 &amp;amp;&amp;amp; completedTasks &amp;lt; totalTasks) SEND ALERT!] ....are you aware of any function that can check the active task count?&lt;br /&gt;- There are ways to do this. As suggested by other practitioners, create a daily/weekly scheduled processes to check and alert the appropriate user/admins etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My concern is this &amp;quot;What if the process didn&amp;#39;t fail, it just stalled out for whatever reason (sometimes for no reason....just happens and you need to restart the task).&amp;quot; There should be no unattended node (any node/task that is not User input task, or has a form for the user to act on) that runs for more than 60 mins and doesn&amp;#39;t move the process to error (paused by exception). You have to find the root cause and fix it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From documentation: &amp;quot;The activity must alost complete within 60 minutes or the process will pause by exception.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Assignment_Tab.html"&gt;docs.appian.com/.../Assignment_Tab.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45096?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 16:29:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b06fd099-ec83-4a3a-8d65-0523c962eedd</guid><dc:creator>venkats533</dc:creator><description>ok, first you got several responses to handle real errors that should be handled by an OOTB alerts.  If you are still looking for a solution, following should help:&lt;br /&gt;
create a process report that lists number of active tasks.  use a!queryAnalytics function to get number of active tasks (including from sub process models) by passing parent process model as context.  run this as daily schedule job to send alert report to application support team.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45090?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 14:24:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0862d31b-32b3-491b-9f15-bf000f7e01a7</guid><dc:creator>piyushk</dc:creator><description>Create a process report for all the required process models in context and columns for number of active task and completed tasks.&lt;br /&gt;
Create a nightly job and which will query the your process report using query process analytics. identify process with problems and send the list of all such processes in the email to administrator.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45089?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 14:13:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8bfd6991-5136-417e-82af-6d0d63e210c4</guid><dc:creator>Josh</dc:creator><description>&lt;p&gt;You can leverage the following task functions on a process report. Your limitation would be querying this process report at an interval. An interval of 1 hour will have better performance&amp;nbsp;vs an interval of 1 minute given&amp;nbsp;a high number of processes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/task_5F00_functions.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/task_5F00_functions.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45088?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 14:01:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c17cf1e9-51a8-42f0-94c6-be5ff1d00104</guid><dc:creator>kat</dc:creator><description>My mistake in using the term &amp;quot;error out&amp;quot;.  We don&amp;amp;#x27;t necessarily get an error...those we can handle and do get alerts for.&lt;br /&gt;
&lt;br /&gt;
What if the process didn&amp;amp;#x27;t fail, it just stalled out for whatever reason (sometimes for no reason....just happens and you need to restart the task).  In that case, there is no error to trigger an alert, it&amp;amp;#x27;s just sitting there green acting like it&amp;amp;#x27;s doing something, when in actuality, it&amp;amp;#x27;s not doing anything. &lt;br /&gt;
&lt;br /&gt;
In our use case, there are numerous times where processes sit a while waiting for data, because sometimes it takes a while to get all the data needed to move forward. Some of our processes can take six months to complete (it&amp;amp;#x27;s the nature of what we do). However, while it&amp;amp;#x27;s waiting, there&amp;amp;#x27;s an active task waiting to be completed.  Which is why timers aren&amp;amp;#x27;t the answer, because each product development cycle is different. Our only indication that something has gone astray is that our process has 0 active tasks after X amount of time.&lt;br /&gt;
&lt;br /&gt;
What we know:  we know how many tasks are associated with a given process, so we can cross check against that [ (if activeTasks == 0 &amp;amp;&amp;amp; completedTasks &amp;lt; totalTasks)  SEND ALERT!] ....are you aware of any function that can check the active task count?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45082?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 12:50:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9579ef3c-9003-4518-b3bd-3f62ad5501aa</guid><dc:creator>Shyam Bommakanti</dc:creator><description>Sorry for the confusion. &lt;br /&gt;
&lt;br /&gt;
Admin intervention is needed to fix process errors.&lt;br /&gt;
And process models can be configured to send out an alert (email) whenever there&amp;amp;#x27;s any process error to a set of admin groups or admin users automatically.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45079?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 07:11:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77cd1000-0b0e-417d-82a8-eca735326537</guid><dc:creator>sergeiz</dc:creator><description>&amp;gt; Currently, it isn&amp;amp;#x27;t until our users notice they have 0 tasks and reach out to us that we are made aware.&lt;br /&gt;
&lt;br /&gt;
I think you need better error handling. I would identify places where most of the errors come from and add error checks into process models. It can send notification to admins via email for instance. And with detailed information where the error happen the admin will be able to fix it faster and will not need to go to the process details to find the place.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45075?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 21:02:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b451763e-cb07-44b5-80a0-37a66186b062</guid><dc:creator>Josh</dc:creator><description>Kat,&lt;br /&gt;
&lt;br /&gt;
The alert @shyamb listed is for the process instance, so if your process were to fail (ex. a database call), then the users (most likely application administrators) you configure for process alerts will receive a notification that the process has an error. This alert sounds like it would satisfy your use case.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45074?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 20:41:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:614256aa-ecfd-461a-82ae-bdd465963c3a</guid><dc:creator>kat</dc:creator><description>We aren&amp;amp;#x27;t needing to alert a user because they are sitting on a task too long.  &lt;br /&gt;
&lt;br /&gt;
The situation is that the process model errors out on a a database script - for whatever reason, which stalls out the entire process.  So at this point, the process isn&amp;amp;#x27;t moving along.  Eventually someone will take a look and see that there are 0 tasks for a process which is the indication that something went wrong.  We need to create an alert for that scenario.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45073?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 20:21:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ada117f5-5b98-411d-bf10-57daaa9e7a62</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;Process errors alerts can be emailed to a set of users and configure in bunch of combinations. Please explore the process model details alerts tab:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Alerts_Tab.html"&gt;docs.appian.com/.../Alerts_Tab.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/pastedimage1493237892292v2.png"&gt;&lt;img src="/resized-image/__size/693x494/__key/communityserver-discussions-components-files/14/pastedimage1493237892292v2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The above shows a way to get alerted if process gets stalled because if an issue. There are other ways to get notified as well, let&amp;#39;s say if the user is not acting on a task assigned&amp;nbsp;etc can be handled via escalation. Documentation on escalation:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/17.1/Escalating_a_Task.html"&gt;docs.appian.com/.../Escalating_a_Task.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45072?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 20:12:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6612f814-54ec-46b7-9005-11569654c71b</guid><dc:creator>kat</dc:creator><description>Thank you for your response harshav.&lt;br /&gt;
&lt;br /&gt;
Let me try to explain further:&lt;br /&gt;
&lt;br /&gt;
Say we&amp;amp;#x27;ve got a Main Process with subprocesses X,Y,Z -- within X,Y,Z there are numerous tasks that should be executing. Say there&amp;amp;#x27;s a total of 86 tasks that can be completed over the lifecycle of this process.&lt;br /&gt;
&lt;br /&gt;
If any of the processes stall, due to say a database issue... when we check that process it will have 0 Current Tasks (indicating it&amp;amp;#x27;s stuck for whatever reason).&lt;br /&gt;
&lt;br /&gt;
Is there a way to monitor that scenario to send an alert?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to generate an alert when a process has zero tasks for a set duration of time?</title><link>https://community.appian.com/thread/45067?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 15:06:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec8dd382-504e-4710-966f-f4d97e48a857</guid><dc:creator>harshav</dc:creator><description>Not sure if I understood the question correct. if there are 0 tasks assigned to a user you need a mail or an alert to the administrators. If that is the use case, we can do it with OOTB features available in Appian. We can create a Task Report based on users and check if the count of the tasks are 0 then we can send an email to admins using send email process. Hope this helps :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>