You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Conditional mapping using Literal String

Accepted answer
29
Views
5
Comments
edited Apr 5, 2019 2:48PM in Integration 5 comments

Summary

How to add otherwise condition in string literal

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!