| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ExecutionEnvironment |
|
| 1.0;1 |
| 1 | package org.kuali.rice.krms.api; | |
| 2 | ||
| 3 | import java.util.Map; | |
| 4 | ||
| 5 | public interface ExecutionEnvironment { | |
| 6 | ||
| 7 | /** | |
| 8 | * Returns the selection criteria that was used to initialize the environment. | |
| 9 | * | |
| 10 | * @return the selection criteria for this environment | |
| 11 | */ | |
| 12 | public SelectionCriteria getSelectionCriteria(); | |
| 13 | ||
| 14 | /** | |
| 15 | * Returns an immutable Map of facts available within this environment. | |
| 16 | * | |
| 17 | * @return the facts in this environment | |
| 18 | */ | |
| 19 | public Map<Asset, Object> getFacts(); | |
| 20 | ||
| 21 | /** | |
| 22 | * Publishes a new fact | |
| 23 | * | |
| 24 | * @param factName name of the fact to publish | |
| 25 | * @param factValue value of the fact to publish | |
| 26 | * // TODO: we don't support updating facts, refactor this method | |
| 27 | * @return true if an existing fact was updated, false if this was a new fact | |
| 28 | */ | |
| 29 | public boolean publishFact(Asset factName, Object factValue); | |
| 30 | ||
| 31 | public void addAssetResolver(AssetResolver<?> assetResolver); | |
| 32 | ||
| 33 | public <T> T resolveTerm(Asset asset) throws AssetResolutionException; | |
| 34 | ||
| 35 | public Map<String, String> getExecutionOptions(); | |
| 36 | ||
| 37 | public EngineResults getEngineResults(); | |
| 38 | ||
| 39 | } |