I am working on a scheduler which will run at4:00 AM daily.
but when i deploy the process model object to test enviroment it ran automatically first and later on schduled time.
So how can we manage this scenario so that the scheduler will run only at the scheduled time.
Many thanks in advance.
Discussion posts and replies are publicly visible
Every time a scheduled process model is published, it will run. In your case, you are deploying to another environment where it gets published. Thats why it runs at that time and again at the scheduled time. If you dont want this behaviour to happen, you can have an environmental constant and configure it to false while deploying the application. After deploying the changes, you can update the constant value to true and it will run only in that particular time.
Sarathkumar R Thank you!!
A scheduled start node has two time settings. The initial delay, and the optional recurring timer. After deployment, the process will initiate as defined in the initial delay.
When deploying a scheduled process to another environment, we ensure that the constant, which has unique values for each environment is deployed alongside it. We set the constant to false in the Customization File and then manually switch it back to true on the destination server after import. Alternatively, we can redeploy the constant set to true if needed.
Additionally, we can also develop an "Admin Page" for easy management of constant values. Most of start condition constants are included here, enabling to toggle them on and off through a user-friendly GUI, ensuring the processes behave as expected.
Thank you Stefan Helzle . I have one more question about this:
Scheduled Delay: Delay for 15 Mins
Time Recurrence:
Daily: Every 1 day
at: 1:30 AM
If we have the above configuration for the Time event, the process will execute at 1:30 AM or 1:45 AM every day?
As per my understanding, it will be executed at 1:45 AM every day.
The initial delay is applied only once and has no impact on the recurring timer settings.
OK. Thanks for sharing the details.