-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration-processor-camel-routes-lost-mz.xml
190 lines (190 loc) · 7.89 KB
/
registration-processor-camel-routes-lost-mz.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<routes xmlns="http://camel.apache.org/schema/spring">
<!-- securezone-notification to packet-uploader Route -->
<route id="securezone-notification-->packet-uploader lost route">
<from uri="vertx:securezone-notification-lost-bus-out" />
<log
message="securezone-notification-->packet-uploader lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:packet-uploader-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<!-- packet-uploader to packet-validator Route -->
<route id="packet-uploader-->packet-validator lost route">
<from uri="vertx:packet-uploader-lost-bus-out" />
<log
message="packet-uploader-->packet-validator lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:packet-validator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<!-- Packet Validator to Quality Checker Route -->
<route id="packet-validator-->quality-checker lost route">
<from uri="vertx:packet-validator-lost-bus-out" />
<log
message="packet-validator-->quality-checker lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:quality-checker-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"isValid":false' and ${bodyAs(String)} contains '"internalError":false'</simple>
<to uri="vertx:message-sender-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="quality-checker-->osi-validator lost route">
<from uri="vertx:quality-checker-lost-bus-out" />
<log
message="quality-checker-->osi-validator lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:o-s-i-validator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"isValid":false' and ${bodyAs(String)} contains '"internalError":false'</simple>
<to uri="vertx:message-sender-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="osi-validator-lost-->bio-dedupe lost route">
<from uri="vertx:o-s-i-validator-lost-bus-out" />
<log
message="osi-validator-lost-->bio-dedupe lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:bio-dedupe-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"isValid":false' and ${bodyAs(String)} contains '"internalError":false'</simple>
<to uri="vertx:message-sender-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="bio-dedupe-lost-->uin-generation lost route">
<from uri="vertx:bio-dedupe-lost-bus-out" />
<log
message="bio-dedupe-->uin-generation lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:uin-generator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"address":"abis-handler-bus-in"'</simple>
<to uri="vertx:abis-handler-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="abis-handler-->abis-middleware lost route">
<from uri="vertx:abis-handler-lost-bus-out" />
<log
message="abis-handler-->abis-middleware lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"address":"abis-middle-ware-bus-in"'</simple>
<to uri="vertx:abis-middle-ware-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"address":"bio-dedupe-bus-in"'</simple>
<to uri="vertx:bio-dedupe-bus-in"/>
</when>
</choice>
</route>
<route id="uin-generation-lost-->message-sender-stage-->printing-stage lost route">
<from uri="vertx:uin-generator-lost-bus-out" />
<log
message="uin-generation-lost-->message-sender-stage lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:message-sender-bus-in" />
<to uri="vertx:printing-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="manual-verification-lost-->uin-generation lost route">
<from uri="vertx:manual-verification-lost-bus-out" />
<log
message="manual-verification-lost-->uin-generation lost route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:uin-generator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"isValid":false' and ${bodyAs(String)} contains '"internalError":false'</simple>
<to uri="vertx:message-sender-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="abis-middleware route-->abis-handler lost route">
<from uri="vertx:abis-middle-ware-lost-bus-out" />
<log message="abis-middleware route-->abis-handler lost route ${bodyAs(String)}" />
<to uri="vertx:abis-handler-bus-in" />
</route>
</routes>