View Javadoc

1   package org.kuali.student.common.util.krms;
2   
3   import java.util.Map;
4   
5   import org.kuali.rice.krms.api.engine.ExecutionOptions;
6   import org.kuali.rice.krms.api.engine.SelectionCriteria;
7   import org.kuali.rice.krms.api.engine.Term;
8   import org.kuali.rice.krms.framework.engine.Context;
9   import org.kuali.rice.krms.framework.engine.ContextProvider;
10  
11  public class ManualContextProvider implements ContextProvider {
12  
13  	private Context context;
14  	
15  	public ManualContextProvider(Context context) {
16  		this.context = context;
17  	}
18  	
19      @Override
20      public Context loadContext(SelectionCriteria selectionCriteria, Map<Term, Object> facts, ExecutionOptions executionOptions) {
21          return context;
22      }
23  
24  }