Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is requiredas we have multiple items in the request
%dw 2.0
output application/csv
---
payload.sale.*item map ((value, index) -> {
index: index,
sale: value.@saleId,
itemName: value.desc,
itemPrice: (value.quantity) * (value.price),
item: value.@itemId
} )
QUESTIONNO: 96
Refer to the exhibits.
The main flow contains a Flow Reference to the child flow.
A web client sends a GET request to the main flow's HTTP Listener that includes a make query parameter.
What values are accessible in the child flow?
A. payload
B.payload
make query param
C. payload
model var
D. payload
make query param model var
Answer: D
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit