]
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.ht...
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.