2 Replies Latest reply on Sep 5, 2007 3:49 AM by Mohamed Mhissen

    JBoss rules

    Mohamed Mhissen Newbie

      I have a problem in the installation of Drools; I have a file ?security.drl? which contains the following rule:

      rule RestrictAccess
       when
       check: PermissionCheck(name == "/home.xhtml", action == "render", granted == false)
       Role(name == "user")
       then
       check.grant();
       end;
      


      My file ?component.xml? contains:
      <drools:rule-base name="securityRules" rule-files="/security.drl" />
       <drools:managed-working-memory name="workingMemory" rule-base="#{securityRules}" />
      


      But the rule is not activated. How I can detect if drools is activated?