It is normal that that in Process/Workflow center, the UCA is NOT triggered automatically... by default only through "Run Now"
Since your TIP snapshot is not enabled, the UCA is not scheduled. It is possible to workaround that, by creating a snapshot in your dev environment and then to activate it.
Original Message:
Sent: Mon November 06, 2023 07:17 AM
From: Andjela Andrijasevic
Subject: automatically starting the process every month
I tried the following: in the gateway decision I checked whether the date was 3. I started the start event with "Run Now" on 3.11.and process was created automatically. I wasn't sure what the end event would do if the start date was not the same as the date in the gateway's decision, so I set the gateway to check if the date is 4.11. I clicked "Run now" on 3.11., but process wasn't created automatically on 4.11. I don't know how to "start event" continue to run every day if the date isn't correct.
------------------------------
Andjela Andrijasevic
Original Message:
Sent: Mon November 06, 2023 04:45 AM
From: QuikJean
Subject: automatically starting the process every month
Can you please provide more info about what does not work ?
------------------------------
QuikJean
Original Message:
Sent: Fri November 03, 2023 06:13 AM
From: Andjela Andrijasevic
Subject: automatically starting the process every month
Hi, I had the same idea, so I tried it, but it didn't work unfortunately.
I have idea with gateway, but I don't know what to do with "no decision". I connect it to end event, but I have problem if it's not correct date, process is finished, and start event won't continue to fire every day.
It works when I click on "Run Now" button when date of running this button fulfills the condition from "yes decision" . But if,for example, date of running is 2.11. and if decision is made for tw.local.startProcess.getDate()==3, it doesn't work.


------------------------------
Andjela Andrijasevic
Original Message:
Sent: Thu November 02, 2023 01:45 PM
From: QuikJean
Subject: automatically starting the process every month
You have to separate the script part from the main process and put it into a dedicated Service Flow.
The Service would be like

And the UCA

Pay attention to the "attached service" in the UCA config
Your process should only contain your part "2" and part "1" must be deleted.
Now that being said, in Dev, UCAs don't get trigger on time unless you create a snapshot and make it active.. it's a bit painful to do so... so it's just better to hit the "Run Now" button
------------------------------
QuikJean
Original Message:
Sent: Tue October 31, 2023 10:05 AM
From: Andjela Andrijasevic
Subject: automatically starting the process every month
Hey, thanks for answering. I had the same idea, but it wasn't work.
I created undercover agent which is run every day, and in script i wrote code:
var currentDate=new Date();
if(currentDate.getDate()==31)
{
tw.system.startProcessByName("Izvještavanje o realizaciji strateškog plana društva");
}
I have two separated parts in the process. First (1) is start event and script in which I check if date is 31.(today day because of testing) and second (2) is main process. I'm not sure is this correct, but I didn't have other idea, and this isn't working, task doesn't appear in the Process Portal.

------------------------------
Andjela Andrijasevic
Original Message:
Sent: Tue October 31, 2023 02:30 AM
From: QuikJean
Subject: automatically starting the process every month
Hey, maybe you can make it run every day and your first step is to check if the date is really the 5th before starting the real work.
If you don't want to put that logic in the main process / service, you can have a wrapper service flow that calls the real one.
Just an idea
Jean
------------------------------
QuikJean
Original Message:
Sent: Mon October 30, 2023 08:50 AM
From: Andjela Andrijasevic
Subject: automatically starting the process every month
Hi, I need to start process automatically on the 5th of every month. I know for undercover agent, but there is just options for every,first or last day of week, but I need to launch process on a certain date. Can someone to help?
------------------------------
Andjela Andrijasevic
------------------------------