# cLoop

Processes messages repetitively and possibly in different ways.

For more information, see the Apache camel documentation https://camel.apache.org/components/latest/.

## cLoop Standard properties

These properties are used to configure cLoop running in the Standard Job framework.

The Standard cLoop component belongs to the Orchestration family.

## Basic settings

| Properties | Description |
| --- | --- |
| Loop Type | <ul> <li> <p>Select a type of loop to be carried out: <span>Expression</span>, <span>Header</span>,								or <span>Value</span>.</p> <p> <span>Expression</span>: Use an expression to								determine the loop count.</p> <p> <span>Header</span>: Use a header to determine								the loop count. </p> <p> <span>Value</span>: Use an argument to set the								loop count.</p> </li> <li> <p>When using <span>Expression</span>: In the                        <span>Language</span> field, select the language of                     the expression you want to use to determine the loop count between <span>Constant</span>, <span>EL</span>,                        <span>Groovy</span>, <span>Header</span>, <span>JoSQL</span>, <span>JXPath</span>, <span>MVEL</span>,                        <span>None</span>, <span>OGNL</span>, <span>PHP</span>, <span>Property</span>, <span>Python</span>, <span>Ruby</span>, <span>Simple</span>, <span>SpEL</span>,                        <span>SQL</span>, <span>XPath</span>, <span>XQuery</span>. Type in the                     expression in the <span>Expression</span> field.</p> <p>For more information about how to use the languages to create an expression, see         the site <a href="http://camel.apache.org/languages.html" target="_blank">http://camel.apache.org/languages.html</a>.</p> <p>The <span>Add Namespaces</span> option appears								when <span>XPath</span> is selected in the									<span>Language</span> list. Select this								check box to add namespaces for the Xpath expression. Click									<span>[+]</span> to add as many namespaces								as required to the table and define the prefix and URI in the								corresponding columns.</p> </li> <li> <p>When using <span>Header</span>: Enter the name								of the header that you want to use to determine the loop count in									<span>header</span> field.</p> </li> <li>When using <span>Value</span>: Enter							an integer you want to set as the loop count in the <span>value</span> field.</li> </ul> |
| Copy | Select this check box to use the copy mode. It is cleared by<br>default.<br><br>If this option is disabled, the same exchange will be used for<br>each iteration. So the result from the previous iteration will be<br>visible for the next.<br><br>If this option is enabled, each iteration restarts with a fresh<br>copy of the input exchange. |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | cLoop can be a middle component<br>in a Route. |
| Limitation | n/a |