001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.krms.framework.engine; 017 018import java.util.List; 019 020import org.kuali.rice.krms.api.engine.ExecutionEnvironment; 021import org.kuali.rice.krms.api.engine.TermResolver; 022 023/** 024 * The context represents the area(s) of an organization's activity where a 025 * rule applies and where the terms used to create the rule are defined and relevant. 026 * An equivalent phrase often used is business domain. Rules only make sense in a 027 * particular context and because they must be evaluated against the information in 028 * that domain or context. 029 * 030 * <p>For example, rules that are specifically authored and 031 * that are meaningful in an application on a Research Proposal would be most 032 * unlikely to make sense or be relevant in the context of a Student Record even 033 * if the condition could be evaluated. 034 * 035 * @author Kuali Rice Team (rice.collab@kuali.org) 036 * 037 */ 038public interface Context { 039 040 /** 041 * Execute with the given {@link ExecutionEnvironment} 042 * @param environment {@link ExecutionEnvironment} to execute with 043 */ 044 void execute(ExecutionEnvironment environment); 045 046 /** 047 * Return a list of the {@link TermResolver}s 048 * @return List<TermResolver<?>> 049 */ 050 List<TermResolver<?>> getTermResolvers(); 051 052}