Skip to main content
swapnar6405
July 25, 2023
Question

Process Model is running every time when I re-start Appian services

  • July 25, 2023
  • 8 replies
  • 0 views

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 changes to avoid this issue.

Thanks in advance.

8 replies

gabriele.camilli
July 25, 2023

Hi, i can suggest to add a constant as a condition on the timer
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

harshk1671
July 26, 2023

An addition to the answer that whenever 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.

csteward
July 26, 2023

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:

csteward
July 25, 2023

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 'missed' scheduled process.  Restarting Appian should not trigger any process that did not miss a scheduled run.

In general, Gabriele'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.  This will work for restarts as well but you will have to change the constant to false before the environment shuts down. 

Do you restart regularly?  Do you want this process to never run after it misses a schedule due to being offline or only sometimes skip a run, etc? 

swapnar6405
July 26, 2023

I just want to run the processes as per the scheduled time not at any other time including services re-start.

csteward
July 26, 2023

Since Appian's native behavior is to start a process automatically upon restart if it missed a scheduled start time, you will need to control this manually via the constant suggestions above.