Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. function insertRowInBLD(ref, riskstatements, maximpact, controleffectiveness, recommendedriskrating, frequency, impact, validatedreviewriskrating, rationalforriskadjustment) {
  2. const businessLineDashboard = new BusinessLineDashboard({
  3. ref: ref,
  4. riskstatements: riskstatements,
  5. maximpact: maximpact,
  6. controleffectiveness: controleffectiveness,
  7. recommendedriskrating: recommendedriskrating,
  8. frequency: frequency,
  9. impact: impact,
  10. validatedreviewriskrating: validatedreviewriskrating,
  11. rationalforriskadjustment: rationalforriskadjustment
  12. });
  13. businessLineDashboard.save()
  14. .then(row => {
  15. console.log('row ' + businessLineDashboard.ref + ' has been inserted succesfully');
  16. })
  17. .catch(err => {
  18. console.log('err: ', err);
  19. });
  20. }
  21.  
  22. function fillBLD() {
  23.  
  24. insertRowInBLD('R01', 'Disclosure of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  25. insertRowInBLD('R02', 'Corruption of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  26. insertRowInBLD('R03', 'Unavailability of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', '', '', '', '', ''),
  27. insertRowInBLD('R04', 'Disclosure of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  28. insertRowInBLD('R05', 'Corruption of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  29.  
  30. }
  31.  
  32. async.series:
  33. function fillBLD() {
  34. async.series(
  35. [
  36. insertRowInBLD('R01', 'Disclosure of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  37. insertRowInBLD('R02', 'Corruption of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  38. insertRowInBLD('R03', 'Unavailability of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', '', '', '', '', ''),
  39. insertRowInBLD('R04', 'Disclosure of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  40. insertRowInBLD('R05', 'Corruption of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
  41. ]
  42. );
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement