Skip to main content
New Participant
Jun 19, 2024 2:11 PM UTC
Question

Business Days

Hii I have requirement to trigger PM on 15th business day of each month so,

(
workday(
date(year(ri!date), month(ri!date), 1),
13,
{ null() }
)
)

By this expression i'm getting 15th working day of month bt as we have timer event and in that monthly time recurrence will ask for On Days 

So How we can do that ?

    4 replies

    konduruc733182
    Inspiring
    Jun 19, 2024 2:30 PM UTC

    Have you tried setting up your process calendar and giving the Timer recurrence as monthly in days and interval of months?

    stefanhelzle0001
    Brainy
    Jun 19, 2024 4:41 PM UTC

    For such rules, a typical solution is to run that model every day. Add a XOR node as the first node to check whether it is the correct day.

    annap0005
    Participating Frequently
    Jun 20, 2024 6:35 AM UTC

    Recurrence daily and add your condition in Advanced Options

    workday(
    date(year(today()), month(today()), 1),
    15,
    { null() }
    ) = today()

    New Participant
    Dec 24, 2024 9:13 PM UTC

    Your expression is on the right track for calculating the 15th business day of the month. However, for a timer event where "On Days" is required, you may need to pre-calculate the specific day dynamically for each month. One approach is to use a script or a scheduled job to set this value in a process variable or database, which the timer can reference.