Witam, mam następującą definicję przepływów w pliku .xml.
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow.xsd">
<var name="order" class="com.packt.webstore.domain.Order" />
<action-state id="addCartToOrder">
<evaluate expression="cartServiceImpl.validate(requestParameters.cartId)"
result="order.cart" />
<transition to="InvalidCartWarning"
on-exception="com.packt.webstore.exception.InvalidCartException" />
<transition to="collectCustomerInfo" />
</action-state>
<view-state id="collectCustomerInfo" view="collectCustomerInfo.jsp" model="order">
<transition on="customerInfoCollected" to="collectShippingDetail" />
</view-state>
<view-state id="collectShippingDetail" model="order">
<transition on="shippingDetailCollected" to="orderConfirmation" />
<transition on="backToCollectCustomerInfo" to="collectCustomerInfo" />
</view-state>
<view-state id="orderConfirmation">
<transition on="orderConfirmed" to="processOrder" />
<transition on="backToCollectShippingDetail" to="collectShippingDetail" />
</view-state>
<action-state id="processOrder">
<evaluate expression="orderServiceImpl.saveOrder(order)" result="order.orderId"/>
<transition to="thankCustomer" />
</action-state>
<view-state id="InvalidCartWarning">
<transition to="endState"/>
</view-state>
<view-state id="thankCustomer" model="order">
<transition to="endState"/>
</view-state>
<end-state id="endState"/>
<end-state id="cancelCheckout" view = "checkOutCancelled.jsp"/>
<global-transitions>
<transition on = "cancel" to="endState" />
</global-transitions>
</flow>
W jaki sposób mam wydobyć utworzoną zmienną order w przepływie?? Chciałbym ją wydobyć i dodać do jakiejś listy lub mapy. Podpowie ktoś?
<var name="order" class="com.packt.webstore.domain.Order" />