In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line.
Issue-ID: VID-607
Change-Id: I2adee2c4d945cde39d796106fa6540d875b25219
Signed-off-by: anushadasari <danush10@in.ibm.com>
option = {
name: constraintsArray[i][PARAMETER.VALID_VALUES][j],
isDefault: false
option = {
name: constraintsArray[i][PARAMETER.VALID_VALUES][j],
isDefault: false
if ( ( UtilityService.hasContents (inputs[key][PARAMETER.DEFAULT]) )
&& (inputs[key][PARAMETER.DEFAULT] === constraintsArray[i][PARAMETER.VALID_VALUES][j] ) ) {
option = {
if ( ( UtilityService.hasContents (inputs[key][PARAMETER.DEFAULT]) )
&& (inputs[key][PARAMETER.DEFAULT] === constraintsArray[i][PARAMETER.VALID_VALUES][j] ) ) {
option = {
parameter.min = constraintsArray[i][PARAMETER.IN_RANGE][0];
parameter.max = constraintsArray[i][PARAMETER.IN_RANGE][1];
parameter.type = PARAMETER.NUMBER;
parameter.min = constraintsArray[i][PARAMETER.IN_RANGE][0];
parameter.max = constraintsArray[i][PARAMETER.IN_RANGE][1];
parameter.type = PARAMETER.NUMBER;
- parameter.value = inputs[key][PARAMETER.DEFAULT]
+ parameter.value = inputs[key][PARAMETER.DEFAULT];
parameterList.push(parameter);
parameterPushed = true;
//console.log ("pushed param for in_range");
parameterList.push(parameter);
parameterPushed = true;
//console.log ("pushed param for in_range");
if ( constraintsArray[i][PARAMETER.GREATER_THAN] != null ) {
parameter.type = PARAMETER.NUMBER;
parameter.min = constraintsArray[i][PARAMETER.GREATER_THAN];
if ( constraintsArray[i][PARAMETER.GREATER_THAN] != null ) {
parameter.type = PARAMETER.NUMBER;
parameter.min = constraintsArray[i][PARAMETER.GREATER_THAN];
- parameter.value = inputs[key][PARAMETER.DEFAULT]
+ parameter.value = inputs[key][PARAMETER.DEFAULT];
parameterList.push(parameter);
parameterPushed = true;
//console.log ("pushed param for greater_than");
parameterList.push(parameter);
parameterPushed = true;
//console.log ("pushed param for greater_than");
var inventoryItem = DataService.getInventoryItem();
var inventoryInfo = ComponentService.getInventoryInfo(
_this.componentId, inventoryItem);
var inventoryItem = DataService.getInventoryItem();
var inventoryInfo = ComponentService.getInventoryInfo(
_this.componentId, inventoryItem);
/*
* The "*Mso*" functions return URL and request details that can be passed
/*
* The "*Mso*" functions return URL and request details that can be passed
if(lineOfBusiness) {
requestDetails.lineOfBusiness = {
lineOfBusinessName: lineOfBusiness
if(lineOfBusiness) {
requestDetails.lineOfBusiness = {
lineOfBusinessName: lineOfBusiness
}
requestDetails.platform = {
}
requestDetails.platform = {
requestDetails.lineOfBusiness = {
lineOfBusinessName: lineOfBusinessNamesString
requestDetails.lineOfBusiness = {
lineOfBusinessName: lineOfBusinessNamesString
}
var platform = getValueFromList(FIELD.ID.PLATFORM, parameterList);
}
var platform = getValueFromList(FIELD.ID.PLATFORM, parameterList);
"modelCustomizationId": modelInfo.customizationUuid,
"modelCustomizationName": modelInfo.modelCustomizationName
}
"modelCustomizationId": modelInfo.customizationUuid,
"modelCustomizationName": modelInfo.modelCustomizationName
}
}
relatedInstanceList.push({
relatedInstance : relatedInstance
}
relatedInstanceList.push({
relatedInstance : relatedInstance
arbitraryParameters = {
name: parameter.id,
value: parameter.value
arbitraryParameters = {
name: parameter.id,
value: parameter.value
arbitraryArray.push(arbitraryParameters);
}
}
}
return (arbitraryArray);
arbitraryArray.push(arbitraryParameters);
}
}
}
return (arbitraryArray);
var getModel = function() {
AsdcService.getModel(DataService.getModelId(), function(response) {
var getModel = function() {
AsdcService.getModel(DataService.getModelId(), function(response) {
getMsoRequestDetails : getMsoRequestDetails,
getMsoUrl : getMsoUrl,
setInventoryInfo: setInventoryInfo
getMsoRequestDetails : getMsoRequestDetails,
getMsoUrl : getMsoUrl,
setInventoryInfo: setInventoryInfo
appDS2.factory("CreationService", [ "$log", "AaiService", "AsdcService",
"DataService","VIDCONFIGURATION", "ComponentService", "COMPONENT", "FIELD", "PARAMETER",
appDS2.factory("CreationService", [ "$log", "AaiService", "AsdcService",
"DataService","VIDCONFIGURATION", "ComponentService", "COMPONENT", "FIELD", "PARAMETER",