OIC provides a good range of scheduling options using the simple calendar to iCal expressions. What if the scheduling need to based on a calendar or Monthend dates which are defined dates which keeps changing every year.
This can be achieved in a relatively simple fashion using the below approach.
Step 1 : Define the Calendar in a LOOKUP, This is yearly task to update the monthend(ME) dates part of the year end process. This will be referenced in the OIC Integrations.
Expression example : vCutoff - dvm:lookupValue('oramds:/apps/ICS/DVM/FIN_CALENDAR_LKP.dvm','Month',string(xp20:format-dateTime(/nssrcmpr:schedule/nssrcmpr:startTime,'[MNn,*-3]-[Y0001]')),'ME-Date','ERROR:CALENDAR')
Step 3 : Build a switch statement into the OIC Integration to use the ME date and based on the business requirement perform the necessary action.
Examples -
a. Invoke a process or Integration on ME date only
b. Invoke a process or Integration until ME date
c. Invoke a process or Integration after ME date
d. Invoke a process or Integration until ME date and given week day like Friday
Below example shows use case b. Where the Integration runs every day until ME date and stops gracefully after ME date of given month.
So in 3 easy steps we could implement Monthend based scheduling in OIC with simple changes to OIC Integration. Happy Integrating!