CMDB model reclassifiction issue

Prasanna SV
Tera Contributor

I have a transform map which loads data into cmdb_model table , these records go to multiple child model tables for which i am trying to set the sys_class_name in the onafter (also tried oncomplete) transform script in an attempt to reclassify them. 

 

Issue is i see those records created in cmdb_model table and not in the child table as i expect them to be. The sysclassname is updated correctly. Due to this, if i open the record, i see 'record not found' message since by class name the page attempts to redirect to corresponding child class table and could not find the record there. 
Below is a sample mapping. 

var mapping={ //without correct classification asset creation will not happen
"cmdb_ci_ot_industrial_3d_printer" : "sn_ent_industrial_model",
"cmdb_ci_ot_industrial_robot" : "sn_ent_industrial_model", //Industrial Model
"u_cmdb_ci_bar_code_scanner" : "cmdb_hardware_product_model", //Hardware Model
"cmdb_ci_computer" : "cmdb_hardware_product_model",
"cmdb_ci_printer" : "cmdb_hardware_product_model",
"cmdb_ci_ot_plc" : "sn_ent_industrial_model",
"cmdb_ci_ip_camera" : "sn_ent_facility_model",
"cmdb_ci_ups" : "cmdb_hardware_product_model",
"u_cmdb_ci_network_video_recorder" : "sn_ent_facility_model",
"cmdb_ci_ot" : "sn_ent_industrial_model",
"cmdb_ci_hardware" : "cmdb_hardware_product_model"
};


However if is set the sys_class_name for a cmdb_model from background, the record gets created on the child table. Is there any way we can reclassify models at the time of transform?

0 REPLIES 0