hasilParseConfig4.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "config4": {
  3. "metadata": {
  4. "author": "ACE Team",
  5. "version": "2.1.0",
  6. "tags": [
  7. "production",
  8. "critical",
  9. "payment"
  10. ]
  11. },
  12. "level1": {
  13. "level2": {
  14. "level3": {
  15. "level4": {
  16. "level5": {
  17. "deepArray": [
  18. "item1",
  19. "item2"
  20. ],
  21. "finalValue": "reached_bottom"
  22. }
  23. }
  24. }
  25. }
  26. },
  27. "complexMapping": {
  28. "rules": [
  29. {
  30. "condition": "status == SUCCESS",
  31. "mapping": {
  32. "sourceField": "response.data.id",
  33. "targetField": "output.transactionId",
  34. "transformation": "UPPERCASE"
  35. },
  36. "action": "PROCEED",
  37. "fallback": ""
  38. },
  39. {
  40. "condition": "status == FAILED",
  41. "mapping": {
  42. "sourceField": "response.error.code",
  43. "targetField": "output.errorCode"
  44. },
  45. "retryConfig": {
  46. "maxAttempts": "3",
  47. "backoffMs": "1000"
  48. },
  49. "action": "RETRY"
  50. },
  51. {
  52. "notification": [
  53. "email",
  54. "sms",
  55. "webhook"
  56. ],
  57. "condition": "status == TIMEOUT",
  58. "action": "CANCEL"
  59. }
  60. ]
  61. }
  62. }
  63. }