Flipkart Search

Sunday 11 November 2012

Get and set task-flow input parameter value in managed bean

1. Method to get the value of TaskFlow inputParameter value 
public static Object getPageFlowParamVal(String tf_paramName){
  ADFContext adfContext = ADFContext.getCurrent();
  return adfContext.getPageFlowScope().get(tf_paramName);
  }
2.  Method to set the value of TaskFlow inputParameter value 
public static void putPageFlowVarVal(String pageFlowScopeVarName,
 Object pageFlowScopeVarVal) {
     ADFContext adfContext = ADFContext.getCurrent();
     adfContext.getPageFlowScope().put(pageFlowScopeVarName,pageFlowScopeVarVal);
  }

No comments:

Post a Comment