/** * Returns the value of the field for the condition * For example: I want to check if age > 50, this function would return the 50 * * @param object CRM_Civirules_TriggerData_TriggerData $triggerData * @return mixed * @access protected */ protected function getOriginalFieldValue(CRM_Civirules_TriggerData_TriggerData $triggerData) { $field = 'status_id'; $data = $triggerData->getOriginalData(); if (isset($data[$field])) { return $data[$field]; } return null; }