RIO Connect: Integration Framework
Table of Contents
The integration framework's purpose is to monitor integration jobs, ensuring they don't exceed their set intervals. If a job runs past its designated interval, an automation will send email notifications to the specified recipients.
The Installation Steps
- Deploy to the destination org using the ‘Integration Framework' zip.
Please click this to access the Integration Framework zip.
Post Deployment Steps
- Navigate to RIO Connect Job Config Custom Metadata in the Setup
- Create the custom metadata records according to your requirements
- Navigate to RIO Connect Job Object and look for Trigger to Send Alert Formula Field.
- Configure the Formula accordingly to your preferred working hours. This is important because this field will determine whether to send out the email notification or not. The formula used is using GMT time zone. To set the formula correctly, you might need to do the conversion according to your time zone.
AND(
RC_Force_Stop_Trigger_Alert__c = FALSE,
IF(
NOT(ISBLANK(RC_Job_Last_Run_DateTime__c)),
((NOW() - RC_Job_Last_Run_DateTime__c)*24*60) > RC_Interval_to_Trigger_Alert_in_Minutes__c,
((NOW() - CreatedDate)*24*60) > RC_Interval_to_Trigger_Alert_in_Minutes__c
),
//Edit the 0 and 9 accordingly
VALUE(MID(TEXT(NOW()), 12, 2)) >= 0,
VALUE(MID(TEXT(NOW()), 12, 2)) < 9
)
- Open the developer console and paste the code below. This will schedule the apex to run hourly and send out the email notification whenever necessary.
REDU_IntegrationMonitoring_SCHED b = new REDU_IntegrationMonitoring_SCHED();
String sch = '0 0 * * * ?';
System.schedule('Integration Monitoring Job', sch, b);
***Notes***
- For Production environment, you will need to activate the flows listed below. The reason is the flows deployed to production will be inactive by default.
- RIO Connect Email Notification
- RIO Connect Record Sync