1. Manage CFI BDomain Settings¶
Make first sure that the BDomain exists:
1.1. Add CFI BDomain Settings¶
To add CFI related settings to a bdomain use API_CFIADM.ADD_BDOMAIN_SETTING.
Currently the only parameter is the offset in hours if the change of business days should not occur at midnight, otherwise the default value will be used, which is 0.
Example: configure a 6-hour offset for BDomain ‘TESTING’
1EXECUTE SCRIPT API_CFIADM.ADD_BDOMAIN_SETTING(
2 'TESTING' -- p_bdomain
3 ,6 -- p_bdate_start_offset
4);
Issuing this command results in a new entry in the table CFI_BDOMAIN_SETTINGS. The business day for BDomain ‘TESTING’ now ends at 6:00 on the following calendar day.
BDOMAIN |
BDATE_START_OFFSET |
---|---|
TESTING |
6 |
1.2. Modify CFI BDomain Settings¶
Modify the settings using API_CFIADM.MODIFY_BDOMAIN_SETTING.
Example: change the offsaet back to zero
1EXECUTE SCRIPT API_CFIADM.MODIFY_BDOMAIN_SETTING(
2 'TESTING' -- p_bdomain
3 ,0 -- p_bdate_start_offset
4);
After running the command above the entry for the bdomain ‘TESTING’ in the table CFI_BDOMAIN_SETTINGS will have changed as can be seen below. The business day and calendar day are identical now.
BDOMAIN |
BDATE_START_OFFSET |
---|---|
TESTING |
0 |
1.3. Remove CFI BDomain Settings¶
To remove CFI bdomain settings execute API_CFIADM.REMOVE_BDOMAIN_SETTING.
Example: remove BDomain settings from ‘TESTING’
1EXECUTE SCRIPT API_CFIADM.REMOVE_BDOMAIN_SETTING(
2 'TESTING' -- p_bdomain
3);
After issuing the command above the entry belonging to the bdomain ‘TESTING’ will have been removed from the table CFI_BDOMAIN_SETTINGS.