GRC: Business Continuity Planning GeneratePlanPdfUtilBase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 12:36 PM
Hi community, looking at guidance to understanding this Script Include:
var GeneratePlanPdfUtilBase = Class.create();
GeneratePlanPdfUtilBase.prototype = {
initialize: function(planSysId) {
this.planTable = 'sn_bcp_plan';
this.planTaskTable = 'sn_bcp_plan_task';
this.documenTemplateTable = 'sn_doc_template';
this.planSysId = planSysId;
this.FILE_EXTENSION = '.pdf';
this.BCP_C = sn_bcp.BCPConstants;
},
getPlanTemplateName: function() {
return gs.getProperty(this.BCP_C.PROPERTIES.PLAN_TEMPLATE_NAME, this.BCP_C.PROPERTIES.PLAN_TEMPLATE_DEFAULT_VALUE);
},
The line:
this.BCP_C = sn_bcp.BCPConstants;
what is sn_bcp.BCPConstants ? I can't right click it to reference it.
Then we get to line:
return gs.getProperty(this.BCP_C.PROPERTIES.PLAN_TEMPLATE_NAME, this.BCP_C.PROPERTIES.PLAN_TEMPLATE_DEFAULT_VALUE);
How is it filling in the value from the system property ? I know the BCM property for
sn_bcp.default_pdf_plan_template is found Business Continuity > General Administration > Properties or in sys_properties
I just don't understand how this line is referencing it. I think they are constants, but where are they define and referenced ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 03:42 AM
Hi,
sn_bcp.BCPConstants is the name of the Script Include. You can search this in the Script include which has all the constants.
Thanks,
Prashanth