Skip to content

Instantly share code, notes, and snippets.

@donatasnicequestion
Created January 19, 2013 17:15
Show Gist options
  • Save donatasnicequestion/4573748 to your computer and use it in GitHub Desktop.
Save donatasnicequestion/4573748 to your computer and use it in GitHub Desktop.
/** Utility bean, decleared and configured in a task-flow-template.xml * as a request scoped bean to suport a parameter passing * between ADF task flows * * @param <T> task flow input parameter type * @param <R> task flow return value type * * @author Donatas Valys */
package com.nicequestion.donatas.adf.commons;
/** Utility bean, decleared and configured in a task-flow-template.xml
* as a request scoped bean to suport a parameter passing
* between ADF task flows
*
* @param <T> task flow input parameter type
* @param <R> task flow return value type
*
* @author Donatas Valys
*/
public final class TaskFlowCall<T,R> implements TaskFlowParameters<T,R> {
/** Receiving task flow injected on a flow call
* as configured in a task-flow-template.xml
*/
private TaskFlowParameters<T,R> flowController;
public TaskFlowCall() {
super();
}
public final void setFlowController(TaskFlowParameters<T,R> flowController) {
this.flowController = flowController;
}
/** Forward an input value to a receiving flow
*
* @param inputParameter input provided by a caller
*/
public final void setInputParameter(T inputParameter) {
flowController.setInputParameter(inputParameter);
}
/** Return value to a caller from a called flow
*
* @return return provided by a receiver flow
*/
public final R getReturnValue() {
return flowController.getReturnValue();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment