I have this code to refactor which contains multiple flows all doing the same tasks. Planning to modify it as a generic flow executed in an iterative way with different start parameters. How can i achieve this in mule.
ex:
<flow name="flow1">
<db:select/>//some specific query for retrieval from database
<expression-component/> Exceutes some specific method of spring bean
</flow>
Similar to flow 1 there are numerous flow which does the same logic retrieves data from some table and execute a bean method on basis of query . How can i refactor this code to a generic flow so that it executes iteratively with initialized parameters(table name , method to execute).