<?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>Hi, We are on Appian Cloud 7.6.  I have following requirement:</title><link>https://community.appian.com/discussions/f/process/3564/hi-we-are-on-appian-cloud-7-6-i-have-following-requirement</link><description>Hi, We are on Appian Cloud 7.6. I have following requirement: In our current portal version of task form, we have set up a hidden field, which will send an API call to our database with the task information as soon as user accepts the task. That was possible</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12640?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 12:53:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9492234d-66f3-4350-8347-5acb946d352e</guid><dc:creator>aksharc</dc:creator><description>Aleksi,&lt;br /&gt;&lt;br /&gt;Actually, whenever anyone accepts the task, we send an API call to our database and save the necessary information like Task ID, Task start time, task acceptance time, task name, who accepted the task, etc. This information is necessary to send our database during the task acceptance.&lt;br /&gt;&lt;br /&gt;To answer your question, user wouldn&amp;#39;t know that there is an API call when they accept the task. Currently we have set that up in the hidden variable under the portal form. But, in case of portal, the form will only refresh when either user accepts the task and user submits the form. So that hidden variable logic worked there.&lt;br /&gt;&lt;br /&gt;But now as we are moving everything to Tempo, the form will refresh every time user will move from component to component. So, I can&amp;#39;t use the function that calls the API under with(), and I can&amp;#39;t use that function in load as well, because that will be called once the form is loaded, not after user accepts the task.&lt;br /&gt;&lt;br /&gt;That&amp;#39;s why I am looking for some functionality/logic which I can apply such that whenever user accepts the task, the function that calls the API will get executed!&lt;br /&gt;&lt;br /&gt;I hope this helps! &lt;br /&gt;&lt;br /&gt;Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12626?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 20:26:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32edda38-df13-4426-af3c-fbf325d87192</guid><dc:creator>Aleksi White</dc:creator><description>I would advise against this.  The potential performance impact of having many of these processes constantly looping for months on end could become noticeable to end-users.  For this API call, is it something that directly impacts what the user is doing?  Or is it something that has no real bearing on what the user is working on with these forms?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12616?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 13:20:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90bc3735-7e70-4477-9539-9123393cf3ec</guid><dc:creator>aksharc</dc:creator><description>Thanks Aleksi!&lt;br /&gt;&lt;br /&gt;What I did was, I added Complex Gateway, and had a condition there that if =gettaskacceptedtimestamp(pv!TaskIDFromRule3) is true, then go and call the API. If that condition is not true, I am sending it to an empty script task (No input, output expressions defined). And again, from the same script task I am flowing to that complex gateway (In a way creating a repeating loop). Also, I have checked the &amp;quot;Delete previously completed/cancelled instances&amp;quot; from the Other tab in the script task.&lt;br /&gt;&lt;br /&gt;This kind of served my purpose. But now concern is, how it will be impacted performance-wise? (We have instances of tasks which are not accepted for as long as 6-7 months.)&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12608?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 23:17:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:944ec857-b292-4e7b-856e-90bbdfd82d51</guid><dc:creator>Aleksi White</dc:creator><description>In that case the function would evaluate to true the next time it executes, which might be in a few seconds or a few minutes.  But if that is too long of a delay then you can try what I mentioned earlier, adding a similar delay to the execution of the rule node the same as you have for the task node&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12600?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 19:07:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13ce7b53-4671-4aaa-b117-6d68e66b0a00</guid><dc:creator>aksharc</dc:creator><description>Right, but in case of the repeated script task, the interval has to be minimum 5 minutes, right? So, I can&amp;#39;t have the &amp;quot;on-demand&amp;quot; kind of functionality here, right? For example what happens when user accepts the time in the time-window of 5 mins?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12597?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 18:38:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a5c5822-7cb9-4794-9454-82716b7709fe</guid><dc:creator>Aleksi White</dc:creator><description>The rule node will only evaluate once, it won&amp;#39;t continuously reevaluate.&lt;br /&gt;&lt;br /&gt;It might be the case that the user won&amp;#39;t even accept the task after that 2 minute window, so I don&amp;#39;t know if that is the best solution.  What I would recommend is using a script task for the rule evaluation, and configure it to repeat until that expression evaluates to true.  Please refer to the attached screenshot.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/14/repeat-until-true.png"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/14/repeat-until-true.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12596?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 18:17:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84e8d37f-ca5b-48e5-bdc8-76b5c76035b1</guid><dc:creator>aksharc</dc:creator><description>My use case is the original which I mentioned at first. I want to fire an API call as soon as user accepts the task. (We already have a function set up, so I just have to call it when user accepts the task.)&lt;br /&gt;&lt;br /&gt;I was just trying to follow what you suggested, use of gettaskacceptedtimestamp(). Now, I thought I would be able to achieve that using Rule node. And to recreate the scenario in test model, I used two minutes delay. As there is no way to know when user will accept any particular task. I was under impression that the rule will flow as soon as the expression evaluates true (Any time). But, it seems I was wrong. &lt;br /&gt;&lt;br /&gt;So, what shall I do now, in order to achieve my use case. Can you give me any pointers? Or how I should use the gettaskacceptedtimestamp()? &lt;br /&gt;&lt;br /&gt;Thanks again!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12595?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 18:08:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:158b3051-f044-4572-9ee3-b58c16eef57e</guid><dc:creator>Aleksi White</dc:creator><description>Could you explain the use case for having the task wait 2 minutes to start?  What is the reasoning behind that?&lt;br /&gt;What&amp;#39;s likely happening is that the rule node is going ahead and evaluating.  Since there is not active task yet, it&amp;#39;s evaluating to false, and not continuing the flow.  Once the task starts and you restart the rule node, it evaluates to true and the flow continues.&lt;br /&gt;I would recommend one of two things:&lt;br /&gt;&lt;br /&gt;1) If the 2 minute delay isn&amp;#39;t necessary, then remove it so the rule node can execute properly and continue the flow&lt;br /&gt;&lt;br /&gt;2) If you do need to the 2 minute timer, then I would add another similar timer in front of the rule node.  This way the rule node will only execute (and be able to continue the flow) once the task node has started and been assigned&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12587?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 13:07:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b35ccad3-af8e-4111-99d4-d1ed057a3b98</guid><dc:creator>aksharc</dc:creator><description>Hi Aleksi,&lt;br /&gt;&lt;br /&gt;Sorry, I might not be understanding it correctly. Following is what I have set up in the process model to test.&lt;br /&gt;&lt;br /&gt;I have two flows flowing from the Start Event. One is going to the User Task Form, and the other is going to the Rule node. Now,&lt;br /&gt;(1) I have scheduled the Task Form such that it will start only after 2 minutes.&lt;br /&gt;(2) And the Rule node has the expression count(getactivetaskidsforprocess(pp!id)) &amp;gt; 0; means, as soon as there is an Active (Assigned and/or Accepted) task, the flow will continue.&lt;br /&gt;&lt;br /&gt;So, when I start the process for debugging, the flow will be at Rule node and User Task Form. It won&amp;#39;t flow ahead, because there won&amp;#39;t be any active task available.&lt;br /&gt;&lt;br /&gt;Now, after two minutes, when the User Task is initiated (activated/assigned), the Rule&amp;#39;s expression should evaluate to true, right? In this case, what happens is, the flow from the Rule node is not flowing ahead. It won&amp;#39;t flow ahead until and unless I restart that node. So, my question is, is this an actual expected behavior? And if so, how can I set up a way so that the flow would continue as soon as the expression is true.&lt;br /&gt;&lt;br /&gt;Thanks again Aleksi for being patient.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12572?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 19:57:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5943f3eb-0485-48c5-864b-87d0ca787539</guid><dc:creator>Aleksi White</dc:creator><description>When testing using gettaskacceptedtimestamp() I got a lot of empty results for a task that was automatically assigned to me.  You might need to use gettaskassignedtimestamp() instead if these are tasks that are automatically assigned to users, rather than ones that they have to accept&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12548?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 20:38:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9862a5ea-e35f-43e8-bb0f-80d26ceb52fa</guid><dc:creator>aksharc</dc:creator><description>Aleksi, I tried that but it didn&amp;#39;t flow ahead. But what I noticed that, after accepting task, when I restarted the rule node, it did flow ahead.&lt;br /&gt;&lt;br /&gt;From documentation, what I understood was in case of conditions, the rule node will reevaluate every time process variable&amp;#39;s value is changed. I am not sure what happens in case of expressions. Do we have to restart the node to reevaluate the rule node in case of expressions?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12547?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 20:16:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03790a22-a491-41c0-81a8-80501433a94d</guid><dc:creator>Aleksi White</dc:creator><description>getactivetaskidsforprocess() will return an integer array, but gettaskacceptedtimestamp() accepts a single integer.  This might be the issue.  Try using the index() function to get the first index from getactivetaskidsforprocess(pp!id), and then pass that into gettaskacceptedtimestamp()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12543?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 18:17:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:325d69ec-cdfe-43a0-a7d5-dac12431f036</guid><dc:creator>aksharc</dc:creator><description>Thanks all for the response.&lt;br /&gt;&lt;br /&gt;Aleksi,&lt;br /&gt;What I tried in the process model that, I have added a rule node which will flow if, not(isnull(gettaskacceptedtimestamp(pv!TaskIDFromRule3))) is true. Where pv!TaskIDFromRule3 = getactivetaskidsforprocess(pp!id). But, somehow the flow is not moving ahead even after I accept a task. (Note: The flow the task resides on, and the rule&amp;#39;s flow is different, but they are in the same process model.&lt;br /&gt;&lt;br /&gt;Do I need to put the timestamp value in the process variable in order to use the not(isnull()) duo?&lt;br /&gt;&lt;br /&gt;Or am I implementing it in a wrong way?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12522?ContentTypeID=1</link><pubDate>Wed, 08 Oct 2014 21:29:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fffe7022-746f-4aba-a16e-78830dbc9123</guid><dc:creator>Mike Cichy</dc:creator><description>This looks like a use case for a writer function plugin: &lt;a href="https://forum.appian.com/suite/help/7.7/Custom_Function_Plug-ins.html#Writer_Functions"&gt;forum.appian.com/.../Custom_Function_Plug-ins.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12520?ContentTypeID=1</link><pubDate>Wed, 08 Oct 2014 19:17:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9cac2e3-95e4-43f3-9f5e-75fba8243f0e</guid><dc:creator>Aleksi White</dc:creator><description>Take a look at the Task Smart Services Plug-in:&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/type/components/item/i4BWsQdLlzKy55h8z8zJ0sPqpDWFrba_rm_wEXWLyhoq0-v-jthm9LA5SnLjubQ/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You might be able to use the getTaskAcceptedTimestamp() function in a separate flow.  If it is null, then you know the task has not been accepted.  If it has a value, then you can make the API call.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;We are on Appian Cloud 7.6.&lt;br /&gt;&lt;br /&gt;I have following requirement:&lt;br</title><link>https://community.appian.com/thread/12517?ContentTypeID=1</link><pubDate>Wed, 08 Oct 2014 18:25:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2300ded3-a9ce-4aa4-8554-4843e269a229</guid><dc:creator>aksharc</dc:creator><description>... functionality (API call during Task Acceptance)?&lt;br /&gt;&lt;br /&gt;Let me know if there is any question!&lt;br /&gt;&lt;br /&gt;Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>