code: function () {
          console.log('Evaluating action rules.');
          var context = this.validateAction();
          if (context.isValid) {
              this.allowExecution = true;
              this.validationContext.state = angularRulesEngine.ValidationContextState.Success;
          }
          else {
              this.allowExecution = false;
              this.validationContext.state = angularRulesEngine.ValidationContextState.Failure;
          }
      }
docs: Use this function to implement the execution of the validation and business rules. This
  function is called after [preValidateAction].