Changes for page Entwicklung eines ACMP Connectors für die ISS
Last modified by jklein on 2025/02/13 13:15
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -392,9 +392,9 @@ 392 392 1. Wählen Sie die PowerShell-Vorlage //ISSRestConnector //aus und klicken Sie in der Ribbonleiste auf den Button //Module//. 393 393 1. Klicken Sie auf //DLL-/PSM1-/Public API-Module hinzufügen //und geben Sie bei //Dateipfad //den Pfad der Modul-Datei //ISSRestConnector.psm1// an, indem Sie die Datei im Datei-Explorer öffnen.{{aagon.infobox}}Bei korrekter Ordnerstruktur, sollte der Pfad 0000 angegeben werden.{{/aagon.infobox}} 394 394 1. Klicken Sie auf den Button //Hinzufügen//, um das Modul hochzuladen und klicken Sie in der Modul-Verwaltung auf //OK//, um die Modul-Verwaltung zu schließen. 395 -1. Wiederholen Sie die Schritte für den Microservice ISSAssetImporter mit de nModulen//ISSAssetImporter.psm1 //und //ACMP Public API// (Änderung desModul-Typserforderlich).395 +1. Wiederholen Sie die Schritte für den Microservice ISSAssetImporter mit dem Modul //ISSAssetImporter.psm1 //und dem Modul //ACMP Public API// (Modul-Typ ändern). 396 396 397 - [[PowerShell-Modulimplementieren>>image:PowerShell-Modulimplementeren.png||alt="PowerShell-Modul implementieren"]]397 +-> Bild einfügen 398 398 399 399 === PowerShell-Module in Microservice-Skripten aufrufen === 400 400 ... ... @@ -414,11 +414,49 @@ 414 414 1. Wechseln Sie in den Skript-Tab //OnStart //und fügen Sie den nachfolgenden Code in die Datei ein. 415 415 1. Wechseln Sie in den Skript-Tab //OnExecute //und fügen Sie den nachfolgenden Code in die Datei ein. 416 416 417 +|(% style="width:698px" %){{code}}# 418 +# This gets executed perpetually by the scheduler. Main business logic should go here. 419 +# 420 + 421 +try { 422 + # Trying to fetch new data 423 + Write-Host "Fetching new data from the api." 424 + $result = Get-ISSData -ApiUrl $configuration.ApiUrl 425 + 426 + # Converting the data to icql 427 + $icql = ConvertTo-AESBIcql $result 428 + 429 + # Sending the data to the next microserice 430 + Publish-AESBMessage -Alias $configuration.Target -Message $icql 431 +} 432 +catch { 433 + Write-Error $_ 434 +}{{/code}}|(% style="width:928px" %){{code}}# 435 +# This gets executed perpetually by the scheduler. Main business logic should go here. 436 +# 437 + 438 +try { 439 + # Trying to fetch new data 440 + Write-Host "Fetching new data from the api." 441 + $result = Get-ISSData -ApiUrl $configuration.ApiUrl 442 + 443 + # Converting the data to icql 444 + $icql = ConvertTo-AESBIcql $result 445 + 446 + # Sending the data to the next microserice 447 + Publish-AESBMessage -Alias $configuration.Target -Message $icql 448 +} 449 +catch { 450 + Write-Error $_ 451 +}{{/code}} 452 + 417 417 (% class="wikigeneratedid" %) 418 418 **ISSAssetImporter** 419 419 420 420 421 421 458 +(% class="wikigeneratedid" %) 459 + 422 422 423 423 == Microservice-Schema erstellen == 424 424