Beruflich Dokumente
Kultur Dokumente
10: label "This plug-in script is used to process removal meter details list in S15
process List.
Revision History: Date: By: Reason: YYYY-MM-DD
IN Reason Text.
for($s15DeviceSPList in
"bo_schema/processDataDetail[last()]/processData/s15DeviceSPDetailsGrp/s15DeviceSPL
ist)
//JAGAN ADDED
move "1+xs:integer($index)" to $index;
if("string(bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15Process
List[seqNo = string($index)]/seqNo) = $BLANK")
move "$index" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/
+s15ProcessList/seqNo";
end-if;
move "$s15DeviceSPList/marketMeterActivity" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/marketMeterActivity";
move "$s15DeviceSPList/meterActivity" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/meterActivity";
if("string(bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDe
viceList[deviceSerialNumber=$oldDeviceSerialNumber]/deviceSerialNumber) != $BLANK
and string($deviceSerialNumber) =
string(bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDevice
List[deviceSerialNumber=$oldDeviceSerialNumber]/deviceSerialNumber) ")
else
move "eventBO/eventGrp/removeInstallEvent" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/processType";
move "eventBO/logMessageGrp/removeInstallEvent" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/logMessageNumber";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/removalDeviceId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceConfigId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/removalDeviceConfigId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/deviceId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceConfigId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/deviceConfigId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/spId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/spId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/installEventId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/installEventId";
move "F1-DateMath/endDateTime" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/removalDateTime";
end-if;
end-if;
end-for;
end-edit;
70: edit data
for($mpanSPDeviceList in
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceUsedForExchange=$BLANK)
//JAGAN ADDED
move "1+xs:integer($index)" to $index;
if("string(bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15Process
List[seqNo = string($index)]/seqNo) = $BLANK")
move "$index" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/
+s15ProcessList/seqNo";
end-if;
move "$mpanSPDeviceList/marketMeterActivity" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/marketMeterActivity";
move "$mpanSPDeviceList/meterActivity" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/meterActivity";
if("string(bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDe
viceList[deviceSerialNumber=$oldDeviceSerialNumber]/deviceSerialNumber) != $BLANK
and string($deviceSerialNumber) =
string(bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDevice
List[deviceSerialNumber=$oldDeviceSerialNumber]/deviceSerialNumber) ")
else
move "eventBO/eventGrp/removeInstallEvent" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/processType";
move "eventBO/logMessageGrp/removeInstallEvent" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/logMessageNumber";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/removalDeviceId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceConfigId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/removalDeviceConfigId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/deviceId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/deviceConfigId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/deviceConfigId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/spId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/spId";
move
"bo_schema/processDataDetail[last()]/processData/mpanSPDeviceGrp/mpanSPDeviceList[d
eviceSerialNumber=$oldDeviceSerialNumber]/installEventId" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/installEventId";
//Remove Install Event
move 'RINE' to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/eventType";
move "F1-DateMath/endDateTime" to
"bo_schema/processDataDetail[last()]/processData/s15ProcessGrp/s15ProcessList[seqNo
= string($index)]/removalDateTime";
end-if;
end-if;
end-for;
end-if;