About this task
In situations where a user wants to have data transported
they can create a flow and set required information on a page then
bind it to a page state within a flow.
Procedure
To create an initial and final state through a page state,
do the following steps:
- Create an XUI project and a transaction file (define data
and Context required).
- Create a initial state with an event named start.
- Create a final state and Choose OK as its exit event.
- Create a Page state and Add an event to the state.
Note: The event OK
for the page state is used to transfer the Page State to Final State.
- Connect these three states with a transition.
- Bind page to the page state and set action of the page
to send out an event that is defined in the transaction.
Example:
Create an XUI file (JSP file) or Modify one to Choose the
specific OK event. Taking XUI file as an example:
- Select the context of the flow which the user want to add the
Page to (Generate the transaction first).
- Generate the XUI file and create a JSP file.
- Select the JSP file for the Page State in the flow editor.
Note: After
selecting the JSP file, the page name will change to the name of JSP
file.
- Modify the event of the transition start from the page.
- Generate the transaction file and create the XML file again .
- Click the widget on the XUI form, select the Action tab>>Change
Flow Event.
- Click Select and choose an event for the widget.
Note: Choose
the OK event as the child of the Page_page State, that means the OK
event is sent by the Page state named page.
- Save the XUI file and Generate the JSP file.