Romeo Casimina 3 Posted October 3, 2019 Posted October 3, 2019 Hi Gurus, Is there a way to do conditional mapping in a service task (input to service mapping) I asked because I have service task which follows similar structure as below Element |--Element1 | |--Attribute1 | |--Attribute2 |--Element2 | |--Attribute3 | |--Attribute4Element2 is optional while Attribute3 is mandatory. I have two data fields following structure of both Element1 (df1) and Element2 (df2) and mapping it to input to service. What I want to do is check if df2 is null do not map as if I do not have that condition, service task is failing as the API expects that Attribute3 is required if Element2 is present. If I am not mistaken, what is happening is that the payload generated contains Element2 where its attributes are null.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now