org.drools.command.runtime
Class BatchExecutionCommandImpl
java.lang.Object
org.drools.command.runtime.BatchExecutionCommandImpl
- All Implemented Interfaces:
- Serializable, org.drools.command.BatchExecutionCommand, org.drools.command.Command<org.drools.runtime.ExecutionResults>, GenericCommand<org.drools.runtime.ExecutionResults>
public class BatchExecutionCommandImpl
- extends Object
- implements org.drools.command.BatchExecutionCommand, GenericCommand<org.drools.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>
- See Also:
- Serialized Form
commands
protected List<GenericCommand<?>> commands
BatchExecutionCommandImpl
public BatchExecutionCommandImpl()
BatchExecutionCommandImpl
public BatchExecutionCommandImpl(List<GenericCommand<?>> commands)
BatchExecutionCommandImpl
public BatchExecutionCommandImpl(List<GenericCommand<?>> commands,
String lookup)
getCommands
public List<GenericCommand<?>> 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 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
execute
public org.drools.runtime.ExecutionResults execute(Context context)
- Specified by:
execute
in interface GenericCommand<org.drools.runtime.ExecutionResults>
setLookup
public void setLookup(String lookup)
getLookup
public String getLookup()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.