[jboss-jira] [JBoss JIRA] (DROOLS-4916) Investigate modify parsing bug in executable model

Toshiya Kobayashi (Jira) issues at jboss.org
Mon Mar 30 02:25:07 EDT 2020


    [ https://issues.redhat.com/browse/DROOLS-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14013185#comment-14013185 ] 

Toshiya Kobayashi commented on DROOLS-4916:
-------------------------------------------

Small correction: We should not have "$a" in the modify block because it fails with standard-drl.
{noformat}
modify ($a) {
   getCategories().add("hello");
}
{noformat}
Anyway, I can reproduce the issue with the above rule.

> Investigate modify parsing bug in executable model
> --------------------------------------------------
>
>                 Key: DROOLS-4916
>                 URL: https://issues.redhat.com/browse/DROOLS-4916
>             Project: Drools
>          Issue Type: Bug
>          Components: executable model
>            Reporter: Luca Molteni
>            Assignee: Toshiya Kobayashi
>            Priority: Major
>              Labels: good-first-issue
>
> {noformat}
> declare Application
>     categories                    : Set        = new HashSet()
> end
> {noformat}
> Then I had a modify statement scattered about:
> {noformat}
> modify ($a) {
>    $a.getCategories().add("hello");
> }
> {noformat}
> The ExecutableModel did not seem to like any of those.  I changed it to:
> {noformat}
> $a.getCategories().add("hello");
> update($a);
> {noformat}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list