Class CompoundPropositionTypeService
java.lang.Object
org.kuali.rice.krms.impl.provider.repository.CompoundPropositionTypeService
- All Implemented Interfaces:
org.kuali.rice.krms.framework.type.PropositionTypeService
public class CompoundPropositionTypeService
extends Object
implements org.kuali.rice.krms.framework.type.PropositionTypeService
An implementation of
PropositionTypeService which loads a CompoundProposition
from the given PropositionDefinition. A compound proposition contains one
or more propositions which are evaluated in conjunction with a logical operator
such as "AND" or "OR".
The proposition given to the loadProposition(PropositionDefinition)
method must be of type PropositionType.COMPOUND.
The translation from a PropositionDefinition to a Proposition
is performed by the given RepositoryToEngineTranslator. This must be
set on this class before it is used.
This class is thread-safe and is designed to be wired as a singleton bean in Spring.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.krms.framework.engine.PropositionloadProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition propositionDefinition) voidsetTranslator(RepositoryToEngineTranslator translator) Sets the translator on this service to the given translator.
-
Constructor Details
-
CompoundPropositionTypeService
public CompoundPropositionTypeService()
-
-
Method Details
-
loadProposition
public org.kuali.rice.krms.framework.engine.Proposition loadProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition propositionDefinition) - Specified by:
loadPropositionin interfaceorg.kuali.rice.krms.framework.type.PropositionTypeService
-
setTranslator
Sets the translator on this service to the given translator.- Parameters:
translator- the translator to set on this service
-