public class BatchExecutionCommandImpl extends Object implements Batch, 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!
Modifier and Type | Field and Description |
---|---|
protected List<org.kie.api.command.Command> |
commands |
Constructor and Description |
---|
BatchExecutionCommandImpl() |
BatchExecutionCommandImpl(List<? extends org.kie.api.command.Command> commands) |
BatchExecutionCommandImpl(List<? extends org.kie.api.command.Command> commands,
String lookup) |
Modifier and Type | Method and Description |
---|---|
BatchExecutionCommandImpl |
addCommand(org.kie.api.command.Command cmd) |
org.kie.api.runtime.ExecutionResults |
execute(org.kie.api.runtime.Context context) |
List<org.kie.api.command.Command> |
getCommands()
Gets the value of the abortWorkItemOrCompleteWorkItemOrFireAllRules property.
|
long |
getDistance() |
String |
getLookup() |
void |
setLookup(String lookup) |
String |
toString() |
protected List<org.kie.api.command.Command> commands
public BatchExecutionCommandImpl()
public BatchExecutionCommandImpl(List<? extends org.kie.api.command.Command> commands)
public List<org.kie.api.command.Command> getCommands()
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 set
method 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
SetGlobalCommand
CompleteWorkItemCommand
AbortWorkItemCommand
SignalEventCommand
FireAllRulesCommand
StartProcessCommand
GetGlobalCommand
InsertElementsCommand
QueryCommand
InsertObjectCommand
getCommands
in interface Batch
public BatchExecutionCommandImpl addCommand(org.kie.api.command.Command cmd)
addCommand
in interface Batch
public org.kie.api.runtime.ExecutionResults execute(org.kie.api.runtime.Context context)
execute
in interface org.kie.api.command.ExecutableCommand<org.kie.api.runtime.ExecutionResults>
public long getDistance()
getDistance
in interface Batch
public void setLookup(String lookup)
public String getLookup()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.