[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1020) Issues with Drools debug logging

Christian Bauer (JIRA) jira-events at lists.jboss.org
Sun Mar 11 04:20:46 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1020?page=comments#action_12355750 ] 
Christian Bauer commented on JBSEAM-1020:

What is the best way to debug a rule like this:

    User either needs to have the access level of the edited node or has to be the creator
rule RestrictNodeEditAccess
    activation-group "permissions"
    c: PermissionCheck(name == "Node", action == "edit");

    Node(nodeWriteAccessLevel : writeAccessLevel, nodeCreator : createdBy)

    Role(userAccessLevel : name -> (Integer.valueOf(userAccessLevel).intValue() >= nodeWriteAccessLevel.intValue()) )
    User(authenticatedUserId : id -> (nodeCreator.getId().equals(authenticatedUserId)) )


I want to see, at test/runtime, which lines on the LHS matched and which didn't.

> Issues with Drools debug logging
> --------------------------------
>                 Key: JBSEAM-1020
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1020
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Security
>            Reporter: Christian Bauer
>         Assigned To: Shane Bryzak
>            Priority: Minor
> I want to see what is going on when my rules are evaluated, according to the Drools docs this is how:
>                 workingMemory.addEventListener( new DebugWorkingMemoryEventListener() );
> I have to do that in code right now, would be nice to be able to configure the identity component externally in config file. It also doesn't work, at least not in JBoss with a WAR deployment. I don't see any debug printed on System.out. Task: Ask the drools guys how we get logging for Seam users.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list