When you made custom navigation in you’re application, but you want to keep te navigation you need to create custom templates otherwise the navigation is lost if you generate the application.
For this problem you need to create a custom taskflow with custom control-flow-case, you need to set the template TASK_FLOW_VIEW_ACTIVITIES for task-flow-control and set the template TASK_FLOW_CONTROL_FLOW_RULES.
1. open JDeveloper -> select ViewController -> right mouse button -> click Edit JHeadstart Application Definition.
Jheadstart has opened and then you select the group for who you want to generate the task-flow-control and control-flow-case.
2. select the template tab and scroll to the group Faces Config, under this group you find the templates
- TASK_FLOW_CONTROL_FLOW_RULES
- TASK_FLOW_VIEW_ACTIVITIES
3. Set another reference to both templates, to do this we create new templates which we adjust.
We use a search page as example.
4. Edit the TASK_FLOW_CONTROL_FLOW_RULES(the call to the page)
5. Set custom code under the from-activity-id *
<control-flow-case id=”#NEW_ID(“__”)”>
<from-outcome id=”#NEW_ID(“__”)”>showSearch</from-outcome>
<to-activity-id id=”#NEW_ID(“__”)”>Search</to-activity-id>
</control-flow-case>
6. Edit the TASK_FLOW_VIEW_ACTIVITIES(which is the page)
<task-flow-call id=”Search”>
<task-flow-reference>
<document>/WEB-INF/adfc-config-Search.xml</document>
<id>SearchTaskFlow</id>
</task-flow-reference>
</task-flow-call>
This generate the group taskflow and you do not have any problem with generating.