def getReflexRuleElement(self, idx=0, element=''):
        """
        Returns the expected value saved in the object.
        :idx: it is an integer with the position of the reflex rules set in the
        widget's list.
        :element: a string with the name of the element to obtain:
            'actions', 'trigger', 'conditions',

        The widget is going to return a list like this:
        [
            {'conditions': [{'analysisservice': '<as-id>',
                            'and_or': 'no',
                            'cond_row_idx': 0,
                            'discreteresult': '',
                            'range0': '12',
                            'range1': '12'}}]
            'trigger': 'xxx',
            'actions':[{'action':'<action_name>', 'act_row_idx':'X',
                        'otherWS': 'to_another', 'analyst': '<analyst_id>',...},
                      {'action':'<action_name>', 'act_row_idx':'X',
                        'otherWS': 'to_another', 'analyst': '<analyst_id>'}
                ]
            }, ...]
        - The list is the abstraction of the rules section in a Reflex
        Rule obj.
        - Each dictionary inside the list is an abstraction of a set of
        conditions and actions to be done if the conditions are met.
        - The 'action' element from the dictionary is a list (its order is
        important) with dictionaries where each dict represents a simple
        action.
        - The 'conditions' element from the dictionary is a list (its order is
        important) with dictionaries where each dict represents a condition.
        - act_row_idx: it is used to know the position numeber of the action
        inside the list.
        - cond_row_idx: it is used to know the position numeber of the
        condition inside the list.
        """
        rules_list = self.aq_parent.aq_inner.getReflexRules()
        if len(rules_list) > idx:
            value = rules_list[idx].get(element, '')
            if element == 'actions' and value == '':
                return [{'action': '', 'act_row_idx': '0',
                        'otherWS': 'current', 'analyst': '',
                        'setresulton': '', 'setresultdiscrete': '',
                        'worksheettemplate': '',
                        'setresultvalue': '', 'an_result_id': ''}, ]
            elif element == 'conditions' and value == '':
                return [{'analysisservice': '', 'cond_row_idx': '0',
                        'range0': '', 'range1': '',
                        'discreteresult': '', 'and_or': 'no'}, ]
            else:
                return value
        if element == 'actions':
            return [{'action': '', 'act_row_idx': '0',
                    'otherWS': 'current', 'analyst': '',
                    'worksheettemplate': '',
                    'setresulton': '', 'setresultdiscrete': '',
                    'setresultvalue': '', 'an_result_id': ''}, ]
        elif element == 'conditions':
            return [{'analysisservice': '', 'cond_row_idx': '0',
                    'range0': '', 'range1': '',
                    'discreteresult': '', 'and_or': 'no'}, ]
        else:
            return ''