Änderungen von Dokument Entwicklung eines ACMP Connectors für die ISS
Zuletzt geändert von jklein am 2025/02/13 13:15
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -414,6 +414,42 @@ 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