org.drools.simulation.fluent.batch.imp
Class FluentBatchExecutionImpl
java.lang.Object
org.drools.simulation.fluent.batch.imp.FluentBatchExecutionImpl
- All Implemented Interfaces:
- FluentBatchExecution, StatefulRuleSessionFluent<FluentBatchExecution>, org.kie.internal.fluent.FluentRoot
public class FluentBatchExecutionImpl
- extends Object
- implements FluentBatchExecution
|
Method Summary |
void |
addCommand(org.drools.core.command.impl.GenericCommand<?> cmd)
|
FluentBatchExecution |
assertRuleFired(String ruleName)
|
FluentBatchExecution |
assertRuleFired(String ruleName,
int fireCount)
Only applies to the last StatefulRuleSessionFluent.fireAllRules() in this step. |
FluentBatchExecution |
createProcessInstance(String identifier,
Map<String,Object> params)
|
FluentBatchExecution |
delete(org.kie.api.runtime.rule.FactHandle handle)
|
FluentBatchExecution |
fireAllRules()
|
org.kie.api.command.BatchExecutionCommand |
getBatchExecution()
|
<P> org.kie.internal.fluent.VariableContext<P> |
|
getVariableContext()
|
FluentBatchExecution |
insert(Object object)
|
FluentBatchExecution |
newBatchExecution()
|
FluentBatchExecution |
set(String name)
The last executed command, if it returns a value, is set to a name in this executings context |
FluentBatchExecution |
setGlobal(String identifier,
Object object)
|
FluentBatchExecution |
signalEvent(String id,
Object event)
|
FluentBatchExecution |
signalEvent(String id,
Object event,
long processId)
|
FluentBatchExecution |
startProcess(String identifier)
|
FluentBatchExecution |
startProcess(String identifier,
Map<String,Object> params)
|
FluentBatchExecution |
startProcessInstance(long processId)
|
FluentBatchExecution |
update(org.kie.api.runtime.rule.FactHandle handle,
Object object)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FluentBatchExecutionImpl
public FluentBatchExecutionImpl()
addCommand
public void addCommand(org.drools.core.command.impl.GenericCommand<?> cmd)
getVariableContext
public <P> org.kie.internal.fluent.VariableContext<P> getVariableContext()
- Specified by:
getVariableContext in interface org.kie.internal.fluent.FluentRoot
getBatchExecution
public org.kie.api.command.BatchExecutionCommand getBatchExecution()
- Specified by:
getBatchExecution in interface FluentBatchExecution
newBatchExecution
public FluentBatchExecution newBatchExecution()
- Specified by:
newBatchExecution in interface FluentBatchExecution
insert
public FluentBatchExecution insert(Object object)
- Specified by:
insert in interface StatefulRuleSessionFluent<FluentBatchExecution>
update
public FluentBatchExecution update(org.kie.api.runtime.rule.FactHandle handle,
Object object)
- Specified by:
update in interface StatefulRuleSessionFluent<FluentBatchExecution>
delete
public FluentBatchExecution delete(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
delete in interface StatefulRuleSessionFluent<FluentBatchExecution>
fireAllRules
public FluentBatchExecution fireAllRules()
- Specified by:
fireAllRules in interface StatefulRuleSessionFluent<FluentBatchExecution>
assertRuleFired
public FluentBatchExecution assertRuleFired(String ruleName)
- Specified by:
assertRuleFired in interface StatefulRuleSessionFluent<FluentBatchExecution>
assertRuleFired
public FluentBatchExecution assertRuleFired(String ruleName,
int fireCount)
- Description copied from interface:
StatefulRuleSessionFluent
- Only applies to the last
StatefulRuleSessionFluent.fireAllRules() in this step.
- Specified by:
assertRuleFired in interface StatefulRuleSessionFluent<FluentBatchExecution>
- Parameters:
ruleName - never nullfireCount - at least 0
- Returns:
- this
throws IllegalArgumentException if
StatefulRuleSessionFluent.fireAllRules() has not been called in this step yet.
setGlobal
public FluentBatchExecution setGlobal(String identifier,
Object object)
- Specified by:
setGlobal in interface StatefulRuleSessionFluent<FluentBatchExecution>
set
public FluentBatchExecution set(String name)
- Description copied from interface:
StatefulRuleSessionFluent
- The last executed command, if it returns a value, is set to a name in this executings context
- Specified by:
set in interface StatefulRuleSessionFluent<FluentBatchExecution>
- Returns:
- this
startProcess
public FluentBatchExecution startProcess(String identifier,
Map<String,Object> params)
startProcess
public FluentBatchExecution startProcess(String identifier)
createProcessInstance
public FluentBatchExecution createProcessInstance(String identifier,
Map<String,Object> params)
startProcessInstance
public FluentBatchExecution startProcessInstance(long processId)
signalEvent
public FluentBatchExecution signalEvent(String id,
Object event,
long processId)
signalEvent
public FluentBatchExecution signalEvent(String id,
Object event)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.