我想根据某些条件在mule应用程序中转换消息 .
%dw 1.0
%output application/json
---
{
**// create the below if the size of payload is greater than 0**
resource_type : "speciality",
speciality_name : payload[0].speciality_name,
speciality_description : payload[0].speciality_description,
uuid : payload[0].uuid
**//else create the below message**
message : "No records were fetched from backend"
}
请问有人请帮助我吗?
1 回答
你可以使用其他条件为此 . 喜欢
希望这可以帮助 .