In called taskflow you can have backing bean which does some operation and say it puts some value in pageflowscope in the child taskflow using below code
HashMap map = new HashMap();
map.put("userId", userRow.getAttribute("ApplUserId"));
map.put("userName", fullName);
AdfFacesContext.getCurrentInstance().getPageFlowScope().put("userDetail", map);
Define a simple return activity in child taskflow, nothing special here
Now in parent taskflow’s jspx/jsff page button/event which calls child taskflow add a returnlistener
The method code looks like
public void onTaskFlowReturn(ReturnEvent returnEvent) {
bhcLogger.entering("UserRoleMaintain.class", "onTaskFlowReturn");
HashMap userDetail = (HashMap)returnEvent.getReturnParameters().get("userDetail");
}
Where in the child’s taskflow attributes are captured in returnEvent object.
