Skip to content

Commit

Permalink
feature: #602 add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-lcapellino committed Apr 9, 2024
1 parent d1f743a commit 2967e4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void synchronizeAssets() {
// TODO: consider creating support method on AssetAdministrationShellDescriptor.is(BomLifecycle lifecycle) that will be usable on our code
// IRS already have BomLifecycle in their domain so we can use it there also
private boolean isAsBuilt(AssetAdministrationShellDescriptor shellDescriptor) {
Optional<IdentifierKeyValuePair> first = shellDescriptor.getSpecificAssetIds().stream().filter(item -> item.getName().equals(DIGITAL_TWIN_TYPE) && item.getName().equals(AS_BUILT_DIGITAL_TWIN_TYPE)).findFirst();
Optional<IdentifierKeyValuePair> first = shellDescriptor.getSpecificAssetIds().stream().filter(item -> item.getName().equals(DIGITAL_TWIN_TYPE) && item.getValue().equals(AS_BUILT_DIGITAL_TWIN_TYPE)).findFirst();
return first.isPresent();
}

Expand Down

0 comments on commit 2967e4d

Please sign in to comment.