First page Back Continue Last page Graphics

Example of ADF Control Flow Rules


Notes:

Example of ADF Control Flow Rules

An example of an ADF unbounded task flow showing simple navigation:

<control-flow-rule>

<from-activity-id>browseOrders</from-activity-id>

<control-flow-case>

<from-outcome>showDetail</from-outcome>

<to-activity-id>orderDetail</to-activity-id>

</control-flow-case>

</control-flow-rule>

<control-flow-rule>

<from-activity-id>orderDetail</from-activity-id>

<control-flow-case>

<from-outcome>showOrders</from-outcome>

<to-activity-id>browseOrders</to-activity-id>

</control-flow-case>

</control-flow-rule>

A button on each page fragment invokes the appropriate action. For example, the Show Items button on the browseOrders page fragment is defined as follows:

<af:commandButton text="Show Items" action="showDetail"/>