protected function afterExecute(Gpf_Data_RecordSet $inputResult) { $outPutResult = new Gpf_Data_RecordSet(); $outPutResult->setHeader(array(parent::KEY_COLUMN_ID, 'number', 'rule')); foreach ($inputResult as $row) { $rule = new Pap_Features_PerformanceRewards_Rule_Transaction(); $rule->fillFromRecord($row); $rule->setCommissionGroupId($row->get('commissiongroup')); try { $outPutResult->add(array($row->get(parent::KEY_COLUMN_ID), $row->get('number'), $rule->getString())); } catch (Pap_Features_PerformanceRewards_UnknownRuleException $e) { $outPutResult->add(array($row->get(parent::KEY_COLUMN_ID), $row->get('number'), $this->_('Unknown rule (%s) - probably created with some feature or plugin - this rule will not be applied.', $rule->getAction()))); } } return $outPutResult; }