[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1808) Macros replacing strings

Paul Ryan (JIRA) jira-events at lists.jboss.org
Wed Jan 14 21:42:04 EST 2009


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

Paul Ryan commented on JBRULES-1808:
------------------------------------

Also note that this is specifically for update that has a preceding space so the following string construction prints fine:

rule "my rule"
when
  $fact : MyFact()
then
  System.out.println("This is an " + "update");
  update($fact);
end 

> Macros replacing strings
> ------------------------
>
>                 Key: JBRULES-1808
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1808
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 4.0.7
>            Reporter: Paul Ryan
>            Assignee: Mark Proctor
>
> Rule compilation is replacing macro's in strings as well as the standard macros. 
> Example:
> rule
> when
>   $fact : MyFact()
> then
>   System.out.println("This is an update");
>   update($fact);
> end
> Results in the following string being printed:
> This is an drools.update

-- 
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