2. • DataWeave provides a set of values that are
automatically assigned by the system.
– Now
• Returns the present moment in (:datetime) type.
– Random
• Returns a random number of type (:number) between
0 and 1
DataWeave – Body - System Values
3. • Now :
– Example :
DataWeave – Body - System Values
Transform Output
%dw 1.0
%output application/json
---
{
a: now,
b: now.day,
c: now.minutes
}
{
"a": "2015-12-
04T18:15:04.091Z",
"b": 4,
"c": 15
}
4. • Random:
– Example :
DataWeave – Body - System Values
Transform
%dw 1.0
%output application/json
---
{
price: random * 1000
}