Class BatchExecutionCommandImpl
- All Implemented Interfaces:
Serializable,Batch,org.kie.api.command.BatchExecutionCommand,org.kie.api.command.Command<org.kie.api.runtime.ExecutionResults>,org.kie.api.command.ExecutableCommand<org.kie.api.runtime.ExecutionResults>
Java class for BatchExecutionCommand complex type. DO NOT ADD NEW COMMANDS TO THIS CLASS WITHOUT THOROUGHLY TESTING 1. THE SERIALIZATION OF THOSE COMMANDS 2. THE INTEGRATION OF THOSE COMMANDS IN THE REST AND WS/SOAP IMPLEMENTATIONS!
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBatchExecutionCommandImpl(List<? extends org.kie.api.command.Command> commands) BatchExecutionCommandImpl(List<? extends org.kie.api.command.Command> commands, String lookup) -
Method Summary
Modifier and TypeMethodDescriptionaddCommand(org.kie.api.command.Command cmd) booleanorg.kie.api.runtime.ExecutionResultsexecute(org.kie.api.runtime.Context context) List<org.kie.api.command.Command>Gets the value of the abortWorkItemOrCompleteWorkItemOrFireAllRules property.longvoidtoString()
-
Field Details
-
commands
-
-
Constructor Details
-
BatchExecutionCommandImpl
public BatchExecutionCommandImpl() -
BatchExecutionCommandImpl
-
BatchExecutionCommandImpl
-
-
Method Details
-
getCommands
Gets the value of the abortWorkItemOrCompleteWorkItemOrFireAllRules property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the abortWorkItemOrCompleteWorkItemOrFireAllRules property.For example, to add a new item, do as follows:
getCommand().add(newItem);Objects of the following type(s) are allowed in the list
SetGlobalCommandCompleteWorkItemCommandAbortWorkItemCommandSignalEventCommandFireAllRulesCommandStartProcessCommandGetGlobalCommandInsertElementsCommandQueryCommandInsertObjectCommand- Specified by:
getCommandsin interfaceBatch
-
addCommand
- Specified by:
addCommandin interfaceBatch
-
execute
public org.kie.api.runtime.ExecutionResults execute(org.kie.api.runtime.Context context) - Specified by:
executein interfaceorg.kie.api.command.ExecutableCommand<org.kie.api.runtime.ExecutionResults>
-
getDistance
public long getDistance()- Specified by:
getDistancein interfaceBatch
-
setLookup
-
getLookup
-
toString
-
autoFireAllRules
public boolean autoFireAllRules()- Specified by:
autoFireAllRulesin interfaceorg.kie.api.command.ExecutableCommand<org.kie.api.runtime.ExecutionResults>
-