Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tESBConsumer Complex Loop

Hi everybody,

I want to create a Job that call a soap web service several times (loop), if  i have an element in the result of the call which equal "FFF" I go out of the loop, else I take the last element of my xml result and I redo the call to the same web service.
Please give me the architecture of this jib and the componement that i need .

Thank you for your help.
Regards.
Labels (4)
1 Reply
Anonymous
Not applicable
Author

Hi 
Use a tLoop to loop the calling many times, select 'While' loop type on tLoop, set the condition with a context variable, boolean type, true as default value, call the webservice and parse the return result, change the value of context variable based on the parsed result. eg:
tLoop--iterate--tESBConsumer--main--tXMLMap--tJavaRow
on tJavaRow: set the value of context variable based on the result, something like:
if(input_row.result.equals("FFF")){
context.condition=false;
}else{
context.condition=true;
}