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

Commit 9864034

Browse files
author
Chris Wiechmann
committed
Bugfix, when ILM-Config is not set skip any further ILM-Setup
#160
1 parent 2639cfd commit 9864034

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

apibuilder4elastic/flows/SetupElasticsearchIndex.json

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,7 @@
449449
"next": {
450450
"context": "$.delayed",
451451
"routes": [
452-
"file.2",
453-
"file.3"
452+
"condition.2"
454453
],
455454
"metaName": "Next"
456455
}
@@ -909,6 +908,65 @@
909908
}
910909
},
911910
"metaMethod": "Read file"
911+
},
912+
"condition.2": {
913+
"type": "nodehandler://axway-flow/condition",
914+
"name": "ILM-Config NotSet?",
915+
"method": "equals",
916+
"parameters": [
917+
{
918+
"name": "source",
919+
"type": "jsonpath",
920+
"value": "$.indexConfig.ilm.config"
921+
},
922+
{
923+
"name": "value",
924+
"type": "string",
925+
"value": "\"NotSet\""
926+
}
927+
],
928+
"outputs": {
929+
"true": {
930+
"routes": [
931+
"logger.1"
932+
],
933+
"context": "$.equals"
934+
},
935+
"false": {
936+
"routes": [
937+
"file.3",
938+
"file.2"
939+
],
940+
"context": "$.equals"
941+
}
942+
}
943+
},
944+
"logger.1": {
945+
"type": "nodehandler://@axway/api-builder-plugin-fn-logger/logger",
946+
"name": "Log Message",
947+
"method": "log",
948+
"parameters": [
949+
{
950+
"name": "level",
951+
"type": "string",
952+
"value": "\"debug\""
953+
},
954+
{
955+
"name": "message",
956+
"type": "string",
957+
"value": "\"Index has no ILM-Config defined.\""
958+
}
959+
],
960+
"outputs": {
961+
"next": {
962+
"context": null,
963+
"routes": []
964+
},
965+
"error": {
966+
"context": "$.error",
967+
"routes": []
968+
}
969+
}
912970
}
913971
}
914972
}

0 commit comments

Comments
 (0)