<?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>Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/discussions/f/new-to-appian/29463/process-model-is-running-every-time-when-i-re-start-appian-services</link><description>Hi, 
 I have a Process Model and it should run as per the scheduled time. There were no issues with this. 
 But, as and when I am re-starting Appian services, the above defines process Model is triggering. 
 
 Can someone advise if I have to do any setting</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116837?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 21:14:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66470961-6002-439f-b2a0-51cc51c4d6f8</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Since Appian&amp;#39;s native behavior is to start a process automatically upon restart &lt;em&gt;&lt;strong&gt;if it missed a scheduled start time&lt;/strong&gt;&lt;/em&gt;, you will need to control this manually via the constant suggestions above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116836?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 21:10:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d40466c3-ea81-4826-8a08-c144bd11f7f7</guid><dc:creator>Chris</dc:creator><description>[quote userid="50400" url="~/discussions/f/new-to-appian/29463/process-model-is-running-every-time-when-i-re-start-appian-services/116828#116828"]Are changes to such a constant picked up live, or only after the process model is republished?&amp;nbsp; I know with a timer value stored in a constant, changes are only picked up after republishing, but not sure about the timer condition one.[/quote]
&lt;p&gt;Yes, changes to the constant are picked up live in the Timer Conditions.&amp;nbsp; When I deploy a scheduled process to another environment, I&amp;#39;ll deploy the constant (set as unique values on each server) along with it, set to false in the Import Customization File, then flip it back manually on the destination server after import (or you can re-deploy only the constant set to true).&lt;/p&gt;
&lt;p&gt;Additionally I built out an &amp;quot;Admin Console&amp;quot; in our COE which has a function to change constant values.&amp;nbsp; All (most) of my start condition constants are in here, and I can toggle them on and off via GUI and the processes will behave appropriately.&amp;nbsp; I also have constants in there that do things like, stop reads/writes to some external databases we manage.&amp;nbsp; When those are planned to have an outage, I flip the constant via the console, and all processes wait cleanly until I toggle it back after maintenance is complete.&lt;/p&gt;
&lt;p&gt;To note you are correct on storing the timer start dateTime in a constant, in this situation the change is not realized by the process until re-published (I&amp;#39;m positive I have an enhancement request logged for that somewhere a lonngg while ago..)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116830?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 17:15:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e08737bc-bdb4-42b0-88e6-e67685a20b1a</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;I just want to run the processes as per the scheduled time not at any other time including services re-start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116828?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 16:04:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36fc3503-8a2f-454a-9cc2-c0f1aa1cb308</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Are changes to such a constant picked up live, or only after the process model is republished?&amp;nbsp; I know with a timer value stored in a constant, changes are only picked up after republishing, but not sure about the timer condition one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116827?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 15:59:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80dc3b7a-4606-4af1-abdd-570f3b6fabf5</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Note that if you use your constant in the Timer Conditions under Advanced Options, you can avoid the extra XOR node and the process will not start at all if set to false:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1690386951937v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116810?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 10:05:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c988f91-46f2-4503-baf5-e6f02dc3841b</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;An addition to the answer that&amp;nbsp;whenever&amp;nbsp;Appian services restart or a PM deploys to a next environment it triggers a new instance for all the scheduled process models. It is good to use an XOR gateway after the start node and check your constant value is true or not. It should only go to the main flow if it true else to the terminate node. Keep value of constant false when you restart the services or push to next environment and later change it to true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116786?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 17:53:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:159c2f4a-eb82-4347-929d-393870410f5a</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Just to clarify, this should only occur if your services were shut down during the scheduled start time, then once your services are online it will start the &amp;#39;missed&amp;#39; scheduled process.&amp;nbsp; Restarting Appian should not trigger any process that did not miss a scheduled run.&lt;/p&gt;
&lt;p&gt;In general, Gabriele&amp;#39;s suggestion of using a boolean constant in the Timer Conditions (under Advanced Options) is what I always use to prevent processes from starting during imports/deployments to another environment.&amp;nbsp; This will work for restarts as well but you will have to change the constant to false &lt;em&gt;&lt;strong&gt;before &lt;/strong&gt;&lt;/em&gt;the environment shuts down.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you restart regularly?&amp;nbsp; Do you want this process to never run after it misses a schedule due to being offline or only sometimes skip a run, etc?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model is running every time when I re-start Appian services</title><link>https://community.appian.com/thread/116745?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 14:18:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2b4f65b-33e4-4d9c-befb-d170850a5668</guid><dc:creator>Gabriele Camilli</dc:creator><description>&lt;p&gt;Hi, i can suggest to add a constant as a condition on the timer&lt;br /&gt;Before imports or restarting, set the constant to false so that the trigger is deactivated and after the action set it to true so that when the times comes the trigger is active&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>