Drools Simulator 6.0.0.Beta1

org.drools.simulation.fluent.session
Interface StatefulRuleSessionFluent<T>

All Known Subinterfaces:
FluentBatchExecution, StatefulKnowledgeSessionSimFluent
All Known Implementing Classes:
DefaultStatefulKnowledgeSessionSimFluent, FluentBatchExecutionImpl

public interface StatefulRuleSessionFluent<T>


Method Summary
 T assertRuleFired(String ruleName)
           
 T assertRuleFired(String ruleName, int fireCount)
          Only applies to the last fireAllRules() in this step.
 T delete(org.kie.api.runtime.rule.FactHandle handle)
           
 T fireAllRules()
           
 T insert(Object object)
           
 T set(String name)
          The last executed command, if it returns a value, is set to a name in this executings context
 T setGlobal(String identifier, Object object)
           
 T update(org.kie.api.runtime.rule.FactHandle handle, Object object)
           
 

Method Detail

setGlobal

T setGlobal(String identifier,
            Object object)

insert

T insert(Object object)

update

T update(org.kie.api.runtime.rule.FactHandle handle,
         Object object)

delete

T delete(org.kie.api.runtime.rule.FactHandle handle)

fireAllRules

T fireAllRules()

assertRuleFired

T assertRuleFired(String ruleName)

assertRuleFired

T assertRuleFired(String ruleName,
                  int fireCount)
Only applies to the last fireAllRules() in this step.

Parameters:
ruleName - never null
fireCount - at least 0
Returns:
this throws IllegalArgumentException if fireAllRules() has not been called in this step yet.

set

T set(String name)
The last executed command, if it returns a value, is set to a name in this executings context

Parameters:
name -
Returns:
this

Drools Simulator 6.0.0.Beta1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.