-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration-processor-camel-routes-deactivate-mz.xml
59 lines (59 loc) · 2.43 KB
/
registration-processor-camel-routes-deactivate-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
<routes xmlns="http://camel.apache.org/schema/spring">
<route id="securezone-notification-->packet-uploader deactivated route">
<from uri="vertx:securezone-notification-deactivated-bus-out" />
<log
message="securezone-notification-->packet-uploader deactivated 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 uin-generator Route -->
<route id="packet-uploader-->uin-generator deactivated route">
<from uri="vertx:packet-uploader-deactivated-bus-out" />
<log
message="packet-uploader-->uin-generator deactivated 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 '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<!-- UIN Generator to Printing and Message Sender Route -->
<route id="uin-generation route-->printing-stage-->message-sender deactivated route">
<from uri="vertx:uin-generator-deactivated-bus-out" />
<log
message="uin-generation-->printing-stage and message-sender-stage deactivated 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>
</routes>