[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2055) Rule using matches <pattern> does not fire properly

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Mon Apr 13 22:29:36 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBRULES-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12461941#action_12461941 ] 

Edson Tirelli commented on JBRULES-2055:
----------------------------------------

BTW, using the modify() blocks, rule is looking like this:

rule Lex
    when
        $k : CharClass( $pattern : pattern )
        $i : Input( $ch : character matches $pattern )
        $l : Lexer( $state : state )
        $t : StateTransition( state == $state, charClass == $k, $action : action, $succ : succ )
    then
        // System.out.println( "fire, ch=" + $ch + ", state=" + $state + ", action=" + $action.getClass().getSimpleName() + ", succ=" + $succ );
        $action.execute( $i );
        modify( $l ) { setState( $succ ) }
        modify( $i ) { next() }
end


> Rule using matches <pattern> does not fire properly
> ---------------------------------------------------
>
>                 Key: JBRULES-2055
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2055
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core  (expert)
>    Affects Versions: 5.0.0.CR1
>         Environment: Linux
>            Reporter: Wolfgang Laun
>            Assignee: Edson Tirelli
>             Fix For: 5.0.0.GA
>
>         Attachments: parser.zip
>
>
> A specific rule using matches doesn't work as expected unless another rule
>    rule x when Object() then end
> is present. Without rule x, rule Lex fires only once.
> I'm not sure whether it is the "matches" op that causes the problem.

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

        



More information about the jboss-jira mailing list