Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 3dfbada

Browse files
author
Chris Wiechmann
committed
Also fail for ILM and RollUp-Errors
#124
1 parent b09e37f commit 3dfbada

File tree

1 file changed

+80
-3
lines changed

1 file changed

+80
-3
lines changed

apibuilder4elastic/flows/SetupElasticsearchIndex.json

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,9 @@
698698
"outputs": {
699699
"next": {
700700
"context": "$.response",
701-
"routes": [],
701+
"routes": [
702+
"power.3"
703+
],
702704
"metaName": "Next"
703705
}
704706
},
@@ -758,7 +760,9 @@
758760
"outputs": {
759761
"next": {
760762
"context": "$.response",
761-
"routes": [],
763+
"routes": [
764+
"power.2"
765+
],
762766
"metaName": "Next"
763767
}
764768
},
@@ -870,11 +874,79 @@
870874
"name": "Shutdown",
871875
"method": "shutdown",
872876
"parameters": [
877+
{
878+
"name": "skipInDevelopment",
879+
"type": "boolean",
880+
"value": "true",
881+
"metaName": "Skip in development",
882+
"metaDescription": "If set to true, the API-Builder process will not be stopped, when in development mode. Instead only the errorCode and errorMessage is logged."
883+
},
884+
{
885+
"name": "errorMessage",
886+
"type": "jsonpath",
887+
"value": "$.error",
888+
"metaName": "Error message",
889+
"metaDescription": "An optional message which is logged when the process is terminated. Helpful to make clear the reason for the shutdown."
890+
},
891+
{
892+
"name": "errorCode",
893+
"type": "number",
894+
"value": "99",
895+
"metaName": "Error code",
896+
"metaDescription": "An integer number used for the process to exit. Defaults to -1."
897+
}
898+
],
899+
"outputs": {
900+
"next": {
901+
"context": "$.errorMessage",
902+
"routes": [],
903+
"metaName": "Next"
904+
},
905+
"error": {
906+
"context": "$.error",
907+
"routes": [],
908+
"metaName": "Error"
909+
}
910+
},
911+
"metaMethod": "Shutdown"
912+
},
913+
"power.2": {
914+
"type": "nodehandler://@axway-api-builder-ext/api-builder-plugin-fn-power/power",
915+
"name": "Shutdown",
916+
"method": "shutdown",
917+
"parameters": [
918+
{
919+
"name": "errorCode",
920+
"type": "number",
921+
"value": "98"
922+
},
923+
{
924+
"name": "errorMessage",
925+
"type": "jsonpath",
926+
"value": "$.error"
927+
},
873928
{
874929
"name": "skipInDevelopment",
875930
"type": "boolean",
876931
"value": "true"
932+
}
933+
],
934+
"outputs": {
935+
"next": {
936+
"context": "$.errorMessage",
937+
"routes": []
877938
},
939+
"error": {
940+
"context": "$.error",
941+
"routes": []
942+
}
943+
}
944+
},
945+
"power.3": {
946+
"type": "nodehandler://@axway-api-builder-ext/api-builder-plugin-fn-power/power",
947+
"name": "Shutdown",
948+
"method": "shutdown",
949+
"parameters": [
878950
{
879951
"name": "errorMessage",
880952
"type": "jsonpath",
@@ -883,7 +955,12 @@
883955
{
884956
"name": "errorCode",
885957
"type": "number",
886-
"value": "99"
958+
"value": "97"
959+
},
960+
{
961+
"name": "skipInDevelopment",
962+
"type": "boolean",
963+
"value": "true"
887964
}
888965
],
889966
"outputs": {

0 commit comments

Comments
 (0)