Beruflich Dokumente
Kultur Dokumente
Controller Controller
Model Model
Business
Business Services Services
Controller
Struts JSF/ADF Task Flow
Model
ADF
ADFBindings
Bindings
Data
Services
Relational Data XML Data Legacy Data Packaged Apps
Controller
Struts JSF/ADF Task Flow
Model
ADF Bindings
Data
Services
Relational Data XML Data Legacy Data Packaged Apps
First entry on task flow stack Added to task flow stack when called
No well-defined boundary or single point of entry Single point of entry, with zero or more exit
points
Cannot be used as a region on a page Use as region on page with page fragments
Does not accept parameters Can accept parameters and return values
Not securable on its own; uses page security Can be secured separately from pages
1 2 3
<af:commandButton
text="Show Items"
action="showDetail"/>
browseOrders Page:
<af:commandButton
text= "Return to Orders"
action="showOrders"/>
orderDetail Page:
4
2 3
Use from-action
to define dynamic
control flow.
...
<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>
...
Router activities:
Use expressions
that evaluate to
true or false
Define
from-outcomes
based on the
value of the expression
Method call
When you return from a called task flow, the task flow return
activity specifies the outcome that is returned to the caller.
Managed beans:
Configured in adfc-config.xml or other task flow .xml
file
Plain Old Java Objects (POJOs), Lists and Maps
Have no-argument constructor
Lazy initialization by JavaServer Faces framework as
needed
1 3
2 5