Class CompoundPropositionTypeService

java.lang.Object
org.kuali.rice.krms.impl.provider.repository.CompoundPropositionTypeService
All Implemented Interfaces:
PropositionTypeService

public class CompoundPropositionTypeService extends Object implements 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 Details

    • CompoundPropositionTypeService

      public CompoundPropositionTypeService()
  • Method Details

    • loadProposition

      public Proposition loadProposition(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition propositionDefinition)
      Specified by:
      loadProposition in interface PropositionTypeService
    • setTranslator

      public void setTranslator(RepositoryToEngineTranslator translator)
      Sets the translator on this service to the given translator.
      Parameters:
      translator - the translator to set on this service