[jboss-jira] [JBoss JIRA] (DROOLS-739) BatchExecutionCommand interface does not contain setLookup() as documented

Brad K. (JIRA) issues at jboss.org
Fri Mar 13 14:07:19 EDT 2015


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

Brad K. updated DROOLS-739:
---------------------------
    Workaround Description: Use BatchExecutionCommandImpl and ignore the BatchExecutionCommand interface.  (was: Use BatchExecutionCommandImpl and ignore the BatchExecutionInterface.)


> BatchExecutionCommand interface does not contain setLookup() as documented
> --------------------------------------------------------------------------
>
>                 Key: DROOLS-739
>                 URL: https://issues.jboss.org/browse/DROOLS-739
>             Project: Drools
>          Issue Type: Bug
>          Components: kie server
>    Affects Versions: 6.2.0.Final
>         Environment: Windows 10 Preview, NetBeans 8.0.2, Java 1.7.u75
>            Reporter: Brad K.
>            Assignee: Edson Tirelli
>            Priority: Minor
>
> http://docs.jboss.org/drools/release/6.2.0.Final/drools-docs/html/ch09.html#d0e11663 describes usage of BatchExecutionCommand (BEC) as
> {quote}BatchExecutionCommand command = new BatchExecutionCommand();
> command.setLookup("ksession1");
> InsertObjectCommand insertObjectCommand = new InsertObjectCommand(new Person("john", 25));
> FireAllRulesCommand fireAllRulesCommand = new FireAllRulesCommand();
> command.getCommands().add(insertObjectCommand);
> command.getCommands().add(fireAllRulesCommand);{quote}
> However, the BEC interface appears to be a tag-only interface with no abstract methods. The BatchExecutionCommandImpl, however, does have methods, but there are no corresponding methods in the BEC. Either the documentation is incorrect or the BEC interface is incorrect.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list