I need to invoke a bounded task flow from a managed bean. I am able to call a managed bean method from an event listener in my application.
How do i launch a bounded task flow from the method?
If TabContext
is Available. Else Pass the Tab context as parameter
try {
TabContext.getCurrentInstance().setTabsRendered(true);
TabContext.getCurrentInstance().addOrSelectTab("Your Tab Name",
"/WEB-INF/task-flow-definition.xml#task-flow-definition");
} catch (TabContext.TabOverflowException e) {
e.printStackTrace();
}
Refer: TaskFlow