Conditional mapping using Literal String
Summary
How to add otherwise condition in string literalContent
Hello Experts,
Need your advice on how to add an otherwise condition in literal string in the mapping.
Currently my mapping looks like
$GetLineRecs/nsmpr3:executeResponse/nsmpr4:response-wrapper/nsmpr4:items[nsmpr4:LineId=current()/nsmpr11:LINE_ID]/nsmpr4:linevalue
it works perfectly fine when the condition is satisfied i.e. if nsmpr4:LineId is equal to current()/nsmpr11:LINE_ID it returns the value of nsmpr4:linevalue but I am not able to figure out how can I add an otherwise condition something like
$GetLineRecs/nsmpr3:executeResponse/nsmpr4:response-wrapper/nsmpr4:items[nsmpr4:LineId=current()/nsmpr11:LINE_ID]/nsmpr4:linevalue/nsmpr11:LINE_VALUE .. so that I get value of nsmpr11:LINE_VALUE if condition is not satisfied.
Tagged:
0