Package org.kie.api.runtime.rule
Interface StatelessRuleSession
-
- All Known Subinterfaces:
StatelessKieSession
public interface StatelessRuleSessionThis interface is used as part of theStatelessKieSession, which is the interface returned from theKieBase. Please seeStatelessKieSessionfor more details on how to use this api.- See Also:
StatelessKieSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(Iterable objects)Execute a StatelessKieSession, iterate the Iterable inserting each of its elements.voidexecute(Object object)Execute a StatelessKieSession inserting just a single object.
-
-
-
Method Detail
-
execute
void execute(Object object)
Execute a StatelessKieSession inserting just a single object. If a collection (or any other Iterable) or an array is used here, it will be inserted as-is, It will not be iterated and its internal elements inserted.- Parameters:
object-
-
execute
void execute(Iterable objects)
Execute a StatelessKieSession, iterate the Iterable inserting each of its elements. If you have an array, use the Arrays.asList(...) method to make that array Iterable.- Parameters:
objects-
-
-