Exam4Training

What is the correct expression to map it to port value?

As a part of requirement, application property defined below needs to be accessed as dataweave expression.

What is the correct expression to map it to port value?
A . { port : p(‘db.port’)}
B. { port : {db:port}}
C. { port : p[‘db.port’]}
D. Application property cannot be accessed in Dataweave

Answer: A

Explanation:

Option 1 is the correct syntax

Exit mobile version