Class MCRCategoryCondition

All Implemented Interfaces:
MCRCondition, MCRFactComputable<MCRCategoryIDFact>, MCRFactCondition<MCRCategoryIDFact>

public class MCRCategoryCondition extends MCRAbstractFactCondition<MCRCategoryIDFact>
This implementation checks if the given object belongs to a certain classification entry. As default the object is read from the fact "objid". Using the attribute 'idfact' another fact containing an object id can be specified Example: <category idfact='the_other_object' fact='published'>state:published</category> This rule will check if the object already stored as fact 'the_other_object' belongs to the category 'state:published'. If true, a fact 'published' will be stored in the facts holder.
Author:
Robert Stephan