[jboss-jira] [JBoss JIRA] (JBRULES-3650) wrong behaviour in InsertElementsCommand

Matteo Cerina (JIRA) jira-events at lists.jboss.org
Thu Oct 4 07:04:05 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matteo Cerina updated JBRULES-3650:
-----------------------------------

    Description: 
Whether or not an "entryPoint" is specified, the objects are added to the base ksession element.

I think the error is in a single point of the code of org.drools.command.runtime.rule.InsertElementsCommand, in the method execute()

As for now, the code looks like:

{{for ( Object object : objects ) {}}
{{handles.add( *ksession*.insert( object ) );}}
{{}}}

Simply replace "ksession" with "wmep", to have it look like:

{{for ( Object object : objects ) {}}
{{handles.add( *wmep*.insert( object ) );}}
{{}}}

Sorry that i can't send you a pull request :)

  was:
Whether or not an "entryPoint" is specified, the objects are added to the base ksession element.

I think the error is in a single point of the code of org.drools.command.runtime.rule.InsertElementsCommand, in the method execute()

As for now, the code looks like:

{{for ( Object object : objects ) {}}
{{    handles.add( *ksession*.insert( object ) );}}
{{}}}

Simply replace "ksession" with "wmep", to have it look like:

{{for ( Object object : objects ) {}}
{{    handles.add( *wmep*.insert( object ) );}}
{{}}}

Sorry that i can't send you a pull request :)


    
> wrong behaviour in InsertElementsCommand
> ----------------------------------------
>
>                 Key: JBRULES-3650
>                 URL: https://issues.jboss.org/browse/JBRULES-3650
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core  (expert)
>    Affects Versions: 5.4.0.Final
>            Reporter: Matteo Cerina
>            Assignee: Mark Proctor
>
> Whether or not an "entryPoint" is specified, the objects are added to the base ksession element.
> I think the error is in a single point of the code of org.drools.command.runtime.rule.InsertElementsCommand, in the method execute()
> As for now, the code looks like:
> {{for ( Object object : objects ) {}}
> {{handles.add( *ksession*.insert( object ) );}}
> {{}}}
> Simply replace "ksession" with "wmep", to have it look like:
> {{for ( Object object : objects ) {}}
> {{handles.add( *wmep*.insert( object ) );}}
> {{}}}
> Sorry that i can't send you a pull request :)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list