0 Replies Latest reply on Sep 2, 2008 9:03 PM by mvlach

    BRMS and seam: no principal object

    mvlach

      Hi,


      I have run the BRMS with seam, but I have problem with this rule:



      rule aaaaaaaa
      when
          c: PermissionCheck(name=="ticket", action=="viewDetail")
          p: Principal()
      then
          System.out.println("grant ticket: " + p);
          c.grant();
      end;


      When I remove the p:Principal(), all works good. But I thiks, where should be a principal object in working memory. So, why can I test this rule ?


      Btw: the user is logged.


      Thanks for response.


      Mila