public class BatchExecutionCommandImpl extends Object implements org.kie.api.command.BatchExecutionCommand, GenericCommand<org.kie.api.runtime.ExecutionResults>
Java class for BatchExecutionCommand complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="BatchExecutionCommand"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded"> <element name="abort-work-item" type="{http://drools.org/drools-5.0/knowledge-session}AbortWorkItemCommand"/> <element name="complete-work-item" type="{http://drools.org/drools-5.0/knowledge-session}CompleteWorkItemCommand"/> <element name="fire-all-rules" type="{http://drools.org/drools-5.0/knowledge-session}FireAllRulesCommand"/> <element name="get-global" type="{http://drools.org/drools-5.0/knowledge-session}GetGlobalCommand"/> <element name="insert" type="{http://drools.org/drools-5.0/knowledge-session}InsertObjectCommand"/> <element name="insert-elements" type="{http://drools.org/drools-5.0/knowledge-session}InsertElementsCommand"/> <element name="query" type="{http://drools.org/drools-5.0/knowledge-session}QueryCommand"/> <element name="set-global" type="{http://drools.org/drools-5.0/knowledge-session}SetGlobalCommand"/> <element name="signal-event" type="{http://drools.org/drools-5.0/knowledge-session}SignalEventCommand"/> <element name="start-process" type="{http://drools.org/drools-5.0/knowledge-session}StartProcessCommand"/> </choice> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<GenericCommand<?>> |
commands |
Constructor and Description |
---|
BatchExecutionCommandImpl() |
BatchExecutionCommandImpl(List<GenericCommand<?>> commands) |
BatchExecutionCommandImpl(List<GenericCommand<?>> commands,
String lookup) |
Modifier and Type | Method and Description |
---|---|
org.kie.api.runtime.ExecutionResults |
execute(org.kie.internal.command.Context context) |
List<GenericCommand<?>> |
getCommands()
Gets the value of the abortWorkItemOrCompleteWorkItemOrFireAllRules property.
|
String |
getLookup() |
void |
setLookup(String lookup) |
String |
toString() |
protected List<GenericCommand<?>> commands
public BatchExecutionCommandImpl()
public BatchExecutionCommandImpl(List<GenericCommand<?>> commands)
public BatchExecutionCommandImpl(List<GenericCommand<?>> commands, String lookup)
public List<GenericCommand<?>> 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
public org.kie.api.runtime.ExecutionResults execute(org.kie.internal.command.Context context)
execute
in interface GenericCommand<org.kie.api.runtime.ExecutionResults>
public void setLookup(String lookup)
public String getLookup()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.