-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateOrder-template.camel.yaml
97 lines (97 loc) · 2.54 KB
/
CreateOrder-template.camel.yaml
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
- route:
id: CreateOrder
from:
id: from-9093
uri: timer
parameters:
delay: "1000"
period: "3000"
timerName: template
steps:
- to:
id: to-3314
uri: direct
parameters:
name: GetAccount
- to:
id: to-2267
uri: direct
parameters:
name: GetCart
- to:
id: to-4208
uri: direct
parameters:
name: GetOrderSequence
- log:
id: log-1837
message: ${body}
- route:
id: GetAccount
from:
id: from-1620
uri: direct
parameters:
name: GetAccount
steps:
- setVariable:
id: setVariable-2581
expression:
simple:
expression: >-
<kaoto:Account AccountId="acc001"
xmlns:kaoto="kaoto.datamapper.test">
<Name>Jane Doe</Name>
<Address>Purkyňova 111, 612 00</Address>
<City>Brno-Medlánky</City>
<Country>Česká republika</Country>
</kaoto:Account>
name: account
- convertVariableTo:
id: convertVariableTo-3000
name: account
type: org.w3c.dom.Document
- route:
id: GetCart
from:
id: "1111"
uri: direct
parameters:
name: GetCart
steps:
- setBody:
id: setBody-3132
expression:
simple:
expression: |-
<kaoto:Cart xmlns:kaoto="kaoto.datamapper.test">
<Item>
<Title>Shadowman T-shirts</Title>
<Note>XL</Note>
<Quantity>10</Quantity>
<Price>25.00</Price>
</Item>
<Item>
<Title>Kaoto T-shirts</Title>
<Note>L</Note>
<Quantity>5</Quantity>
<Price>24.50</Price>
</Item>
</kaoto:Cart>
- convertBodyTo:
id: convertBodyTo-1207
type: org.w3c.dom.Document
- route:
id: GetOrderSequence
from:
id: from-4065
uri: direct
parameters:
name: GetOrderSequence
steps:
- setVariable:
id: setVariable-2655
expression:
simple:
expression: nnnn
name: orderSequence