티스토리 뷰

이 상황에서 언제 / 그렇지 않으면 사용할 수 있습니다. 가까웠습니다 . 괄호 대신 {}를 사용하십시오. 라인을 따라 뭔가 :

%dw 1.0
%input payload application/json
%output application/xml
---
{
    Data: {
            userId: flowVars.queryParams.userId,
                    Message: "User created successfully"
                        }
                        }
                        when (payload[0].userResponse.category == "SUCCESS") and
                             (payload[1].userResponse.category == "SUCCESS"))
                             otherwise
                             {
                                 Exception: {
                                         userId: flowVars.queryParams.userId,
                                                 Message: payload[1].exception.message
                                                     }
                                                     }
                                                     


출처
https://stackoverflow.com/questions/39920290
댓글
공지사항
Total
Today
Yesterday
«   2025/07   »
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