Package org.kuali.rice.krms.api.engine
Class Facts.Builder
java.lang.Object
org.kuali.rice.krms.api.engine.Facts.Builder
- Enclosing class:
Facts
Builder for a
Facts parameter object-
Method Summary
Modifier and TypeMethodDescriptionAdd a fact mapping from the term name to the fact valueAdd a fact mapping from the name and parameter map combination to the fact valueAdd a fact mapping from theTermto the fact valueaddFactsByName(Map<String, Object> facts) Add facts in bulk to this Facts parameter objectaddFactsByTerm(Map<Term, Object> facts) Add facts in bulk to this Facts parameter objectbuild()return aFactsparameter object spawned from thisFacts.Builderstatic Facts.Buildercreate()Static factory method to produce instances of thisFacts.Builderclass
-
Method Details
-
create
Static factory method to produce instances of thisFacts.Builderclass- Returns:
-
addFact
Add a fact mapping from the name and parameter map combination to the fact value- Parameters:
termName- the name of the term. Must not be empty or null.termParameters- any parameters for the term. May be null or empty.factValue- the concrete value for the term
-
addFact
Add a fact mapping from the term name to the fact value- Parameters:
termName- the name of the term. Must not be empty or null.factValue- the concrete value for the term
-
addFact
Add a fact mapping from theTermto the fact value- Parameters:
term- the term that this fact is a value for. Must not be null.factValue- the fact value
-
addFactsByTerm
Add facts in bulk to this Facts parameter object- Parameters:
facts- the map of Terms to fact values. May be null, in that case this call is a no op.
-
addFactsByName
Add facts in bulk to this Facts parameter object- Parameters:
facts- the map of term names to fact values. May be null, in that case this call is a no op.
-
build
return aFactsparameter object spawned from thisFacts.Builder
-