org.drools.simulation.fluent.session.impl
Class DefaultStatefulKnowledgeSessionSimFluent
java.lang.Object
org.drools.simulation.fluent.test.impl.AbstractTestableFluent<StatefulKnowledgeSessionSimFluent>
org.drools.simulation.fluent.session.impl.DefaultStatefulKnowledgeSessionSimFluent
- All Implemented Interfaces:
- StatefulKnowledgeSessionSimFluent, StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>, StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>, TestableFluent<StatefulKnowledgeSessionSimFluent>
public class DefaultStatefulKnowledgeSessionSimFluent
- extends AbstractTestableFluent<StatefulKnowledgeSessionSimFluent>
- implements StatefulKnowledgeSessionSimFluent
|
Method Summary |
protected StatefulKnowledgeSessionSimFluent |
addCommand(org.kie.api.command.Command command)
|
StatefulKnowledgeSessionSimFluent |
assertRuleFired(String ruleName)
|
StatefulKnowledgeSessionSimFluent |
assertRuleFired(String ruleName,
int fireCount)
Only applies to the last StatefulRuleSessionFluent.fireAllRules() in this step. |
StatefulKnowledgeSessionSimFluent |
createProcessInstance(String identifier,
Map<String,Object> params)
|
StatefulKnowledgeSessionSimFluent |
delete(org.kie.api.runtime.rule.FactHandle handle)
|
SimulationFluent |
end()
|
SimulationFluent |
end(String name)
|
SimulationFluent |
end(String context,
String name)
|
StatefulKnowledgeSessionSimFluent |
fireAllRules()
|
String |
getActiveKnowledgeSessionId()
|
StatefulKnowledgeSessionSimFluent |
insert(Object object)
|
StatefulKnowledgeSessionSimFluent |
newRelativeStep(long relativeDistance)
|
StatefulKnowledgeSessionSimFluent |
newRelativeStep(long relativeDistance,
TimeUnit timeUnit)
|
StatefulKnowledgeSessionSimFluent |
newStep(long distanceMillis)
|
StatefulKnowledgeSessionSimFluent |
newStep(long distanceMillis,
TimeUnit timeUnit)
|
StatefulKnowledgeSessionSimFluent |
set(String name)
The last executed command, if it returns a value, is set to a name in this executings context |
StatefulKnowledgeSessionSimFluent |
setGlobal(String identifier,
Object object)
|
StatefulKnowledgeSessionSimFluent |
signalEvent(String id,
Object event)
|
StatefulKnowledgeSessionSimFluent |
signalEvent(String id,
Object event,
long processId)
|
StatefulKnowledgeSessionSimFluent |
startProcess(String identifier)
|
StatefulKnowledgeSessionSimFluent |
startProcess(String identifier,
Map<String,Object> params)
|
StatefulKnowledgeSessionSimFluent |
startProcessInstance(long processId)
|
StatefulKnowledgeSessionSimFluent |
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 |
DefaultStatefulKnowledgeSessionSimFluent
public DefaultStatefulKnowledgeSessionSimFluent(SimulationFluent simulationFluent)
addCommand
protected StatefulKnowledgeSessionSimFluent addCommand(org.kie.api.command.Command command)
- Specified by:
addCommand in class AbstractTestableFluent<StatefulKnowledgeSessionSimFluent>
setGlobal
public StatefulKnowledgeSessionSimFluent setGlobal(String identifier,
Object object)
- Specified by:
setGlobal in interface StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>
insert
public StatefulKnowledgeSessionSimFluent insert(Object object)
- Specified by:
insert in interface StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>
update
public StatefulKnowledgeSessionSimFluent update(org.kie.api.runtime.rule.FactHandle handle,
Object object)
- Specified by:
update in interface StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>
delete
public StatefulKnowledgeSessionSimFluent delete(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
delete in interface StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>
fireAllRules
public StatefulKnowledgeSessionSimFluent fireAllRules()
- Specified by:
fireAllRules in interface StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>
assertRuleFired
public StatefulKnowledgeSessionSimFluent assertRuleFired(String ruleName)
- Specified by:
assertRuleFired in interface StatefulRuleSessionFluent<StatefulKnowledgeSessionSimFluent>
assertRuleFired
public StatefulKnowledgeSessionSimFluent 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<StatefulKnowledgeSessionSimFluent>
- Parameters:
ruleName - never nullfireCount - at least 0
- Returns:
- this
throws IllegalArgumentException if
StatefulRuleSessionFluent.fireAllRules() has not been called in this step yet.
getActiveKnowledgeSessionId
public String getActiveKnowledgeSessionId()
end
public SimulationFluent end(String context,
String name)
- Specified by:
end in interface StatefulKnowledgeSessionSimFluent
end
public SimulationFluent end(String name)
- Specified by:
end in interface StatefulKnowledgeSessionSimFluent
end
public SimulationFluent end()
- Specified by:
end in interface StatefulKnowledgeSessionSimFluent
set
public StatefulKnowledgeSessionSimFluent 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<StatefulKnowledgeSessionSimFluent>
- Returns:
- this
startProcess
public StatefulKnowledgeSessionSimFluent startProcess(String identifier,
Map<String,Object> params)
- Specified by:
startProcess in interface StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>
startProcess
public StatefulKnowledgeSessionSimFluent startProcess(String identifier)
- Specified by:
startProcess in interface StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>
createProcessInstance
public StatefulKnowledgeSessionSimFluent createProcessInstance(String identifier,
Map<String,Object> params)
- Specified by:
createProcessInstance in interface StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>
startProcessInstance
public StatefulKnowledgeSessionSimFluent startProcessInstance(long processId)
- Specified by:
startProcessInstance in interface StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>
signalEvent
public StatefulKnowledgeSessionSimFluent signalEvent(String id,
Object event,
long processId)
- Specified by:
signalEvent in interface StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>
signalEvent
public StatefulKnowledgeSessionSimFluent signalEvent(String id,
Object event)
- Specified by:
signalEvent in interface StatefulProcessSessionFluent<StatefulKnowledgeSessionSimFluent>
newStep
public StatefulKnowledgeSessionSimFluent newStep(long distanceMillis)
- Specified by:
newStep in interface StatefulKnowledgeSessionSimFluent
newStep
public StatefulKnowledgeSessionSimFluent newStep(long distanceMillis,
TimeUnit timeUnit)
- Specified by:
newStep in interface StatefulKnowledgeSessionSimFluent
newRelativeStep
public StatefulKnowledgeSessionSimFluent newRelativeStep(long relativeDistance)
- Specified by:
newRelativeStep in interface StatefulKnowledgeSessionSimFluent
newRelativeStep
public StatefulKnowledgeSessionSimFluent newRelativeStep(long relativeDistance,
TimeUnit timeUnit)
- Specified by:
newRelativeStep in interface StatefulKnowledgeSessionSimFluent
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.