As a PURIS developer ,
I want a dedicated mapper service ,
so that I can map aggregated data from IRS responses to the internal representation .
Hints / Details
- implement a new service
AggregatedDataMapper
- the service should implement a method to map a given
JsonNode and Partner to a PartnerAggregatedData object
expected JSON structure
{
"globalAssetId": "urn:uuid:6c311d29-5753-46d4-b32c-19b918ea93b0",
"sourceDisruptionId": "urn:uuid:123e4567-e89b-12d3-a456-426614174001",
"childItems": [
{
"materialNumber": "MNR-7307-AU340474.002",
"materialName": "Semiconductor",
"quantity": {
"value": 2.0,
"unit": "unit:piece"
},
"items": [
{
"aspect": "urn:samm:io.catenax.delivery_information_anonymized:1.0.0#DeliveryInformationAnonymized",
"items": {..}
},
{
"aspect": "urn:samm:io.catenax.item_stock_anonymized:1.0.0#ItemStockAnonymized",
"items": {..}
},
{
"aspect": "urn:samm:io.catenax.planned_production_output_anonymized:1.0.0#PlannedProductionOutputAnonymized",
"items": {..}
}
],
"childItems": [
{
"materialNumber": "MNR-4177-S",
"materialName": "Transistor",
"quantity": {
"value": 1.0,
"unit": "unit:piece"
},
"items": [..],
"childItems": [..]
}
]
}
]
}
Outcome / Acceptance Criteria
Outcome
Acceptance Criteria
Out of Scope
As a PURIS developer ,
I want a dedicated mapper service ,
so that I can map aggregated data from IRS responses to the internal representation .
Hints / Details
AggregatedDataMapperJsonNodeandPartnerto aPartnerAggregatedDataobjectexpected JSON structure
{ "globalAssetId": "urn:uuid:6c311d29-5753-46d4-b32c-19b918ea93b0", "sourceDisruptionId": "urn:uuid:123e4567-e89b-12d3-a456-426614174001", "childItems": [ { "materialNumber": "MNR-7307-AU340474.002", "materialName": "Semiconductor", "quantity": { "value": 2.0, "unit": "unit:piece" }, "items": [ { "aspect": "urn:samm:io.catenax.delivery_information_anonymized:1.0.0#DeliveryInformationAnonymized", "items": {..} }, { "aspect": "urn:samm:io.catenax.item_stock_anonymized:1.0.0#ItemStockAnonymized", "items": {..} }, { "aspect": "urn:samm:io.catenax.planned_production_output_anonymized:1.0.0#PlannedProductionOutputAnonymized", "items": {..} } ], "childItems": [ { "materialNumber": "MNR-4177-S", "materialName": "Transistor", "quantity": { "value": 1.0, "unit": "unit:piece" }, "items": [..], "childItems": [..] } ] } ] }Outcome / Acceptance Criteria
Outcome
Acceptance Criteria
Out of Scope