Hello,
is it possible to define start of scheduled process not in process itself (with Start timer element), but in some system settings or lookup, for example?
How to start process at that time?
Thank you!
Vladimir
Like
Hello!
To determine when a timer will trigger, there are only three possible ways:
Check the timer configuration in the process settings.
Look at the process properties for details about the timer.
Execute a query on the database tables QRTZ_TRIGGERS and QRTZ_CRON_TRIGGERS.
There is no way to view this information through system settings.
If you need to trigger the process manually, you can find more information about our API at the following link:
Creatio API Documentation - Terrasoft.Core.Scheduler - https://academy.creatio.com/api/netcoreapi/8.0.0/api/Terrasoft.Core.Scheduler.html
Best regards,
Orkhan
Orkhan,
I don't need to determine when a timer will trigger.
I need to start business process by some external timer (not starting signal), cause time of start should be calculated, not static
Kind regards,
Vladimir
Hello,
To achieve the desired functionality, the client can follow these steps:
Create a custom object:
Add a StartDate column to store the date when the process should begin.
Design the process as illustrated in the provided diagram:
Configure the process to trigger when the StartDate column is updated.
Add logic to read the value of the StartDate column.
Calculate the wait time in seconds using a formula such as (StartDate - DateTime.Now()).TotalSeconds.
Use an intermediate timer to wait for the computed number of seconds.
After the wait time, proceed to start the process.