A flow may declare one or more instance variables.
These variables are allocated when the flow starts.
@Autowired transient references the variable holds are also rewired when the flow resumes.
var element to declare a flow variable:
<var name="searchCriteria" class="com.mycompany.myapp.hotels.search.SearchCriteria"/>
Make sure your variable's class implements
java.io.Serializable, as the instance state is saved between flow requests.