Announcement Announcement Module
No announcement yet.
Confusion on Spring webflow reference manual. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Confusion on Spring webflow reference manual.

    Dear all;

    <flow xmlns=""

    <input name="hotelId" />

    <evaluate expression="bookingService.createBooking(hotelId,"
    result="" />

    <view-state id="enterBookingDetails">
    <transition on="submit" to="reviewBooking" />

    <view-state id="reviewBooking">
    <transition on="addGuest" to="addGuest" />
    <transition on="confirm" to="bookingConfirmed" />
    <transition on="revise" to="enterBookingDetails" />
    <transition on="cancel" to="bookingCancelled" />

    <subflow-state id="addGuest" subflow="createGuest">
    <transition on="guestCreated" to="reviewBooking">
    <evaluate expression="booking.guests.add(currentEvent.attrib utes.guest)" />
    <transition on="creationCancelled" to="reviewBooking" />

    <end-state id="bookingConfirmed" >
    <output name="bookingId" value="" />

    <end-state id="bookingCancelled" />


    In this example:
    1. At the top: <input name="hotelId" />, From where the hotelId comes from? where it ref from? Does it pass from anywhere?

    2. <evaluate expression="booking.guests.add(currentEvent.attrib utes.guest)" />
    In this expression; booking.guests (Is booking means interface?? and guest means method of that interface??)

    Further more in this example. "currentEvent.attributes.guest"..I guess last "guest" must be the output name from parent flow i.e "reviewBooking". then how and where it comes from??
    Last edited by japs; Jul 10th, 2011, 02:50 AM.