Events not triggering within a business rule

matthew_hughes
Kilo Sage

I've created the below business rule where I'm trying to generate two events. I'm wanting it to trigger when records within the 'x_lbg_group_recert_grp_recertification' get created on the current date:

matthew_hughes_1-1745911261844.png

matthew_hughes_2-1745911299199.png

 

My two events are:

matthew_hughes_5-1745911546208.png

 

The records are being created via a Scheduled Job. However what I'm finding that even though there are records that are being created today, it's not generating the two events:

matthew_hughes_3-1745911380936.png

matthew_hughes_4-1745911460642.png

 

So I was just wondering if anyone knows what I'm doing wrong so that I can generate the two events

 

 

 

 

 

17 REPLIES 17

Hi @Shree_G 

I've tried the following conditions in flow designer:

matthew_hughes_0-1745923906060.png

 

 

matthew_hughes_1-1745923925350.png

 

However, that's not worked either when running the scheduled job

 

I tested a record and the following error appeared:

class com.snc.process_flow.engine.serialization.GRProxy$1 cannot be cast to class java.lang.String (com.snc.process_flow.engine.serialization.GRProxy$1 is in unnamed module of loader com.snc.orbit.container.tomcat8.Tomcat8$OrbitTomcat8ClassLoader @209089ec; java.lang.String is in module java.base of loader 'bootstrap')
 

@matthew_hughes ,

 

This should work fine. Able to share the Test execution summary to know more.

Hi @Shree_G  This is the screenshot of the test execution summary

 

matthew_hughes_0-1745924546836.png

 

Hi @Shree_G  Do you know how I could stop duplicate emails being sent if the group manager appears more than once? I want to insert the email address only once into the parameter of each event. I tried the below:

// Retrieve the notifiedManagers set from persistent storage
// Check if the global variable exists, if not, initialize it
if (typeof globalNotifiedManagers === 'undefined') {
    globalNotifiedManagers = new Set();
}

var recertTasks = fd_data.trigger.current;
var manager = recertTasks.group_manager;

if (!globalNotifiedManagers.has(manager)) {
    globalNotifiedManagers.add(manager);
    return manager.email;
}

@matthew_hughes 

please check my yesterday's comment which has approach

AnkurBawiskar_0-1746021486634.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.