eclipse-basyx / basyx-java-sdk

java-sdk
MIT License
26 stars 33 forks source link

Modifies AAS/SM deletion from registry in ConnectedAssetAdministrationShellManager #270

Closed mdanish98 closed 1 year ago

mdanish98 commented 1 year ago

In ConnectedAssetAdministrationShellManager, when deleting the AAS or SM it automatically tries to delete the corresponding AAS/SM from the registry as well, but if the AAS/SM has already been already removed from the registry then it would throw an exception.

As the AAS server (v1.4.0) now unregisters the deleted AAS/SMs automatically from the registry, the deletion would throw an exception.

We observed this issue in basyx-examples, while upgrading the AAS-Server to 1.4.0.

This PR corrects the behavior.

Signed-off-by: Mohammad Ghazanfar Ali Danish ghazanfar.danish@iese.fraunhofer.de