I have been trying to configure a loop operator, within a workflow in ISC, but it is failing.
The errors on the test-workflow are not enough to triage the issue. However, my understanding is, the issue with loop.input variable, where I have used a “define.variable” operator and tried some jsonPath expression to create an array of strings.
My used syntax (passed as text in variable definition):
[“CampaignA”, “CampaignB”, “CampaignC”, “CampaignD”, “CampaignE”]
I could not use any other transform in “”, and hoping that if can pass an array / list of strings inside loop, I will be able to iterate through the values to compare with another string.
Please help me here, if anyone else has faced similar issue, and aware of any solution.
Thank you.
As far as defineVariable operator is concerned it will only store values as string rest it will discard. If it is a list, boolean or etc.
Now coming to second point where you need to iterate. I believe you are trying to do a Check on list of campaigns, So i would suggest that you use that same jsonPath expression to get a list of campaigns directly in the loop input. And then iterate over that input & Because each input now will be a string object you can do a compare strings to validate based on your conditions.
Hey Neeraj, appreciate your response.
Note that my goal is to compare a string with a list of strings. ( in this case single string is the campaign name, which I want to compare ).
What I am not able to figure it out that, even if I define 4 variables with static strings, how can I possibly pass that into loop.input for iteration? loop.input only excepting one variable in attribute selector.