Package org.kie.api.command
Interface KieCommands
-
- All Superinterfaces:
java.lang.Comparable<KieService>
,KieService
public interface KieCommands extends KieService
KieCommands is a factory for Commands that can be used by classes that implement CommandExecutor. Typically more than one Command will want to be executed, where is where the BatchExecution comes in, which takes a List of commands, think of it as CompositeCommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Command<FactHandle>
fromExternalFactHandleCommand(java.lang.String factHandleExternalForm)
Command<FactHandle>
fromExternalFactHandleCommand(java.lang.String factHandleExternalForm, boolean disconnected)
Command
newAbortWorkItem(long workItemId)
Command<java.lang.Long>
newAdvanceSessionTime(long amount, java.util.concurrent.TimeUnit unit)
Command<java.lang.Long>
newAdvanceSessionTime(long amount, java.util.concurrent.TimeUnit unit, java.lang.String outIdentifier)
Command
newAgendaGroupSetFocus(java.lang.String name)
Command
newApplyPmmlModel(PMMLRequestData request)
BatchExecutionCommand
newBatchExecution(java.util.List<? extends Command> commands)
BatchExecutionCommand
newBatchExecution(java.util.List<? extends Command> commands, java.lang.String lookup)
Command
newCompleteWorkItem(long workItemId, java.util.Map<java.lang.String,java.lang.Object> results)
Command
newDelete(FactHandle factHandle)
Command
newDeleteObject(java.lang.Object object, java.lang.String entryPoint)
Command
newDispose()
ExecutionResults
newExecutionResults()
Command
newFireAllRules()
Command
newFireAllRules(int max)
Command
newFireAllRules(java.lang.String outidentifier)
Command
newGetFactHandle(java.lang.Object object)
Command
newGetFactHandleInEntryPoint(java.lang.Object object, java.lang.String entryPoint)
Command
newGetFactHandles()
Command
newGetFactHandles(java.lang.String outIdentifier)
Command
newGetFactHandles(ObjectFilter filter)
Command
newGetFactHandles(ObjectFilter filter, java.lang.String outIdentifier)
Command
newGetGlobal(java.lang.String identifier)
Command
newGetGlobal(java.lang.String identifier, java.lang.String outIdentifier)
Command
newGetObject(FactHandle factHandle)
Command
newGetObject(FactHandle factHandle, java.lang.String outIdentifier)
Command
newGetObjects()
Command
newGetObjects(java.lang.String outIdentifier)
Command
newGetObjects(ObjectFilter filter)
Command
newGetObjects(ObjectFilter filter, java.lang.String outIdentifier)
Command<java.lang.Long>
newGetSessionTime()
Command<java.lang.Long>
newGetSessionTime(java.lang.String outIdentifier)
Command
newInsert(java.lang.Object object)
Command
newInsert(java.lang.Object object, java.lang.String outIdentifier)
Command
newInsert(java.lang.Object object, java.lang.String outIdentifier, boolean returnObject, java.lang.String entryPoint)
Command
newInsertElements(java.lang.Iterable objects)
Command
newInsertElements(java.lang.Iterable objects, java.lang.String outIdentifier)
Command
newInsertElements(java.lang.Iterable objects, java.lang.String outIdentifier, boolean returnObject, java.lang.String entryPoint)
Command
newModify(FactHandle factHandle, java.util.List<Setter> setters)
Command
newQuery(java.lang.String identifier, java.lang.String name)
Command
newQuery(java.lang.String identifier, java.lang.String name, java.lang.Object[] arguments)
Command
newRegisterWorkItemHandlerCommand(WorkItemHandler handler, java.lang.String workItemName)
Command
newSetGlobal(java.lang.String identifie, java.lang.Object object)
Command
newSetGlobal(java.lang.String identifier, java.lang.Object object, boolean out)
Command
newSetGlobal(java.lang.String identifier, java.lang.Object object, java.lang.String outIdentifier)
Setter
newSetter(java.lang.String accessor, java.lang.String value)
Command
newSignalEvent(java.lang.String type, java.lang.Object event)
Command
newSignalEvent(java.lang.String processInstanceId, java.lang.String type, java.lang.Object event)
Command
newStartProcess(java.lang.String processId)
Command
newStartProcess(java.lang.String processId, java.util.Map<java.lang.String,java.lang.Object> parameters)
-
Methods inherited from interface org.kie.api.internal.utils.KieService
compareTo, servicePriority
-
-
-
-
Method Detail
-
newInsert
Command newInsert(java.lang.Object object)
-
newDispose
Command newDispose()
-
newInsert
Command newInsert(java.lang.Object object, java.lang.String outIdentifier)
-
newInsert
Command newInsert(java.lang.Object object, java.lang.String outIdentifier, boolean returnObject, java.lang.String entryPoint)
-
newInsertElements
Command newInsertElements(java.lang.Iterable objects)
-
newInsertElements
Command newInsertElements(java.lang.Iterable objects, java.lang.String outIdentifier)
-
newInsertElements
Command newInsertElements(java.lang.Iterable objects, java.lang.String outIdentifier, boolean returnObject, java.lang.String entryPoint)
-
newDelete
Command newDelete(FactHandle factHandle)
-
newDeleteObject
Command newDeleteObject(java.lang.Object object, java.lang.String entryPoint)
-
newSetter
Setter newSetter(java.lang.String accessor, java.lang.String value)
-
newModify
Command newModify(FactHandle factHandle, java.util.List<Setter> setters)
-
newFireAllRules
Command newFireAllRules()
-
newFireAllRules
Command newFireAllRules(int max)
-
newFireAllRules
Command newFireAllRules(java.lang.String outidentifier)
-
newGetFactHandle
Command newGetFactHandle(java.lang.Object object)
-
newGetFactHandleInEntryPoint
Command newGetFactHandleInEntryPoint(java.lang.Object object, java.lang.String entryPoint)
-
newGetObject
Command newGetObject(FactHandle factHandle)
-
newGetObject
Command newGetObject(FactHandle factHandle, java.lang.String outIdentifier)
-
newGetObjects
Command newGetObjects()
-
newGetObjects
Command newGetObjects(java.lang.String outIdentifier)
-
newGetObjects
Command newGetObjects(ObjectFilter filter)
-
newGetObjects
Command newGetObjects(ObjectFilter filter, java.lang.String outIdentifier)
-
newSetGlobal
Command newSetGlobal(java.lang.String identifie, java.lang.Object object)
-
newSetGlobal
Command newSetGlobal(java.lang.String identifier, java.lang.Object object, boolean out)
-
newSetGlobal
Command newSetGlobal(java.lang.String identifier, java.lang.Object object, java.lang.String outIdentifier)
-
newGetGlobal
Command newGetGlobal(java.lang.String identifier)
-
newGetGlobal
Command newGetGlobal(java.lang.String identifier, java.lang.String outIdentifier)
-
newStartProcess
Command newStartProcess(java.lang.String processId)
-
newStartProcess
Command newStartProcess(java.lang.String processId, java.util.Map<java.lang.String,java.lang.Object> parameters)
-
newSignalEvent
Command newSignalEvent(java.lang.String type, java.lang.Object event)
-
newSignalEvent
Command newSignalEvent(java.lang.String processInstanceId, java.lang.String type, java.lang.Object event)
-
newQuery
Command newQuery(java.lang.String identifier, java.lang.String name)
-
newQuery
Command newQuery(java.lang.String identifier, java.lang.String name, java.lang.Object[] arguments)
-
newBatchExecution
BatchExecutionCommand newBatchExecution(java.util.List<? extends Command> commands)
-
newBatchExecution
BatchExecutionCommand newBatchExecution(java.util.List<? extends Command> commands, java.lang.String lookup)
-
newRegisterWorkItemHandlerCommand
Command newRegisterWorkItemHandlerCommand(WorkItemHandler handler, java.lang.String workItemName)
-
newAbortWorkItem
Command newAbortWorkItem(long workItemId)
-
newCompleteWorkItem
Command newCompleteWorkItem(long workItemId, java.util.Map<java.lang.String,java.lang.Object> results)
-
fromExternalFactHandleCommand
Command<FactHandle> fromExternalFactHandleCommand(java.lang.String factHandleExternalForm)
-
fromExternalFactHandleCommand
Command<FactHandle> fromExternalFactHandleCommand(java.lang.String factHandleExternalForm, boolean disconnected)
-
newAgendaGroupSetFocus
Command newAgendaGroupSetFocus(java.lang.String name)
-
newGetFactHandles
Command newGetFactHandles()
-
newGetFactHandles
Command newGetFactHandles(java.lang.String outIdentifier)
-
newGetFactHandles
Command newGetFactHandles(ObjectFilter filter)
-
newGetFactHandles
Command newGetFactHandles(ObjectFilter filter, java.lang.String outIdentifier)
-
newGetSessionTime
Command<java.lang.Long> newGetSessionTime()
-
newGetSessionTime
Command<java.lang.Long> newGetSessionTime(java.lang.String outIdentifier)
-
newAdvanceSessionTime
Command<java.lang.Long> newAdvanceSessionTime(long amount, java.util.concurrent.TimeUnit unit)
-
newAdvanceSessionTime
Command<java.lang.Long> newAdvanceSessionTime(long amount, java.util.concurrent.TimeUnit unit, java.lang.String outIdentifier)
-
newApplyPmmlModel
Command newApplyPmmlModel(PMMLRequestData request)
-
newExecutionResults
ExecutionResults newExecutionResults()
-
-