Skip to content

Commit

Permalink
add sample to saple inbound mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Dec 26, 2024
1 parent e0b8da4 commit 6790e71
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ private ProcessingContext<byte[]> getBuildProcessingContext(ProcessingContext<by

ExternalIDRepresentation sourceId = c8yAgent.resolveExternalId2GlobalId(tenant,
new ID(mapping.externalIdType, substitute.value.toString()), context);
// since the attributes identifying the MEA and Inventory requests are removed
// during the design time, they have to be added before sending
substitute.repairStrategy = RepairStrategy.CREATE_IF_MISSING;
if (sourceId == null && mapping.createNonExistingDevice) {
ManagedObjectRepresentation attocDevice = null;
Map<String, Object> request = new HashMap<String, Object>();
Expand Down
Binary file modified resources/samples/SampleMappings_13.pdf
Binary file not shown.
Binary file modified resources/samples/SampleMappings_13.xlsx
Binary file not shown.
67 changes: 50 additions & 17 deletions resources/samples/mappings-INBOUND.json

Large diffs are not rendered by default.

0 comments on commit 6790e71

Please sign in to comment.