Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function insertRowInBLD(ref, riskstatements, maximpact, controleffectiveness, recommendedriskrating, frequency, impact, validatedreviewriskrating, rationalforriskadjustment) {
- const businessLineDashboard = new BusinessLineDashboard({
- ref: ref,
- riskstatements: riskstatements,
- maximpact: maximpact,
- controleffectiveness: controleffectiveness,
- recommendedriskrating: recommendedriskrating,
- frequency: frequency,
- impact: impact,
- validatedreviewriskrating: validatedreviewriskrating,
- rationalforriskadjustment: rationalforriskadjustment
- });
- businessLineDashboard.save()
- .then(row => {
- console.log('row ' + businessLineDashboard.ref + ' has been inserted succesfully');
- })
- .catch(err => {
- console.log('err: ', err);
- });
- }
- function fillBLD() {
- insertRowInBLD('R01', 'Disclosure of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- insertRowInBLD('R02', 'Corruption of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- insertRowInBLD('R03', 'Unavailability of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', '', '', '', '', ''),
- insertRowInBLD('R04', 'Disclosure of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- insertRowInBLD('R05', 'Corruption of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- }
- async.series:
- function fillBLD() {
- async.series(
- [
- insertRowInBLD('R01', 'Disclosure of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- insertRowInBLD('R02', 'Corruption of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- insertRowInBLD('R03', 'Unavailability of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', '', '', '', '', ''),
- insertRowInBLD('R04', 'Disclosure of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- insertRowInBLD('R05', 'Corruption of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
- ]
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement