---------- Forwarded message ---------- From: Hoang-Vu PHUNG <hvu.ph...@gmail.com> Date: 2012/4/30 Subject: Question regarding loop in camel To: users-h...@camel.apache.org
Hi all, So far the loop construction in camel has a fixed number of iterations. Is it possible some how to : 1. dynamically change the count of interations 2. or exit the loop earlier 3. or better use a Predicate that is re-evaluated to decide to continue to iterate or not ? My project is to use camel to simulate a process workflow. I prefer camel because of its simplicity of usage. My only problem is how to simulate a while loop. I can do something like fixing a high number of iterations and then use a choice condition to decide to execute the process but we waste the resources unnecessarily. Thanks for your answer. Regards, Hoang-Vu