Back to index
An item which can be executed. The execution of a rule involves the execution of each one of its elements (i.e. conditions and actions). The IRule will be adapted to IExecutable in order to execute it (e.g. by iterating through the elements and executing each one), in a multi-adaptation of (context, rule, event), making it possible to customise the execution based on the type of event or context. Similarly, any object created via the 'addview' of an IRuleElement (i.e. the configuration object for that particular instance of that particular condition or action) will be adapted to IExecutable, in a multi-adaptation from (context, element, event), in order to be executed when the rule that contains it is executed.
Execute the rule or rule element. If this method returns False, execution will stop. If it returns True, execution will continue if possible.