Rule Execution Server API

com.ibm.rules.engine.runtime
Interface EngineInput

All Known Subinterfaces:
EngineWithWorkingMemoryInput, RuleEngineInput, RuleflowEngineInput

public interface EngineInput

Use EngineInput to parameterize Engine execution. Subinterfaces may provide additional services, depending on the kind of engine they support.


Method Summary
 EngineData getData()
          Returns the EngineData.
 void resetParameters()
          Reset the parameters to their initial values.
 void setParameter(String name, Object value)
          Sets the value of a specific parameter.
 void setParameters(Map<String,Object> map)
          Sets the values for a number of parameters.
 

Method Detail

getData

EngineData getData()
Returns the EngineData. This content may be changed before Engine execution.

Returns:
The EngineData.

setParameter

void setParameter(String name,
                  Object value)
Sets the value of a specific parameter.

Throws:
IllegalArgumentException - if there is no parameter with the given name
Parameters:
name - The key of the parameter to be updated.
value - The new value of the field.

setParameters

void setParameters(Map<String,Object> map)
Sets the values for a number of parameters. If a key in map is not a parameter key, it is ignored.

Throws:
IllegalArgumentException - if one of the key from the map is not a parameter name.
Parameters:
map - A Map of associated parameter keys and values.

resetParameters

void resetParameters()
Reset the parameters to their initial values.


Rule Execution Server API

© Copyright IBM Corp. 1987, 2013