public function process()
    {
        $rule = $this->getComponent();
        $context = $this->getContext();

        $processor = $this->getRuleProcessorFactory()->createProcessor($rule);
        $processor->setState($context);
        $processor->process();

        $this->trace($rule->getQtiClassName());
    }
public function process()
    {
        $rule = $this->getComponent();
        $context = $this->getContext();

        $processor = $this->getRuleProcessorFactory()->createProcessor($rule);
        $processor->setState($context);
        $processor->process();

        $this->trace($rule->getQtiClassName());
    }
public function process ( ) { $ rule = $ this -> getComponent ( ) ; $ context = $ this -> getContext ( ) ; $ processor = $ this -> getRuleProcessorFactory ( ) -> createProcessor ( $ rule ) ; $ processor -> setState ( $ context ) ; $ processor -> process ( ) ; $ this -> trace ( $ rule -> getQtiClassName ( ) ) ; }
Execute the current Rule object.

@throws \qtism\runtime\rules\RuleProcessingException
Execute the current Rule object .