windup/windup — pull request #166 by mbriskar (2014-08-01 14:19:44+00:00)
Title: WINDUP-156: Some simplifications to Iteration variable handling (implici...

...t iteration variable names)

## How it works after this?
Now, you are able to name only the variables you are going to use, otherwise they are going to be calculated using defaults. You have 3 options to write rules.

1. The old one, specify everything:
```java
.when(
Query.find(AbcModel.class).as("abcModels")
).perform(
Iteration.over("abcModels").as("abcModel")
....
```
2. Specify **only** the list **iterable** name. When this is used, the name for each iterated variable is calculated automatically in the Iteration class (there is a specific method that returns for the given list it's calculated name). Right now it adds prefix added "_instance"
```java
Query.find(AbcModel.class).as("abcModels")
).perform(
Iteration.over("abcModels")
...
```
3. Specify **nothing**, everything is called using the default names saved as the static finals in the Iterator.
```java
Query.find(AbcModel.class)
).perform(
Iteration.over()
....
```
## Rewriting the rules
I have rewritten all the rules. The **old style** is used only for the reporting rules that are using the variable name in the reports. The **3. style** is used everywhere it looked it fits. Otherwise, the **2. style** is used.
If this PR will be accepted, I will update our wiki also with this message.

## Tests
`mvn clean install` passed on this PR.