com.ibm.btt.channel
Class AbstractPolicyOperationStep
java.lang.Object
com.ibm.btt.base.OperationStep
com.ibm.btt.channel.AbstractPolicyOperationStep
- All Implemented Interfaces:
- OperationStepInterface
- Direct Known Subclasses:
- PolicyOperationStep
public abstract class AbstractPolicyOperationStep
- extends OperationStep
The abstract operation step that used to do rule checking. All subclass needs
to implement: 1) getInputParameter method to convert the data from operation
context to the input parameters of the rule. 2) processResult method to
process the result after checking the rule.
Method Summary |
int |
execute()
Execute logic of the operation step. |
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
getInputParameter()
Construct the input parameters using the data from the operation context
or getting from data store. |
protected abstract int |
processResult(java.util.Map<java.lang.String,java.lang.Object> result)
Subclass override this method to process the result |
Methods inherited from class com.ibm.btt.base.OperationStep |
addElement, getApplicationId, getContext, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getOperation, getParams, getParent, getService, getValueAt, postExecute, preExecute, removeAt, setApplicationId, setContext, setKeyedCollection, setName, setOperation, setParams, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REFRULESERVICE
public static final java.lang.String REFRULESERVICE
- See Also:
- Constant Field Values
AbstractPolicyOperationStep
public AbstractPolicyOperationStep()
execute
public int execute()
throws java.lang.Exception
- Execute logic of the operation step.
- Specified by:
execute
in interface OperationStepInterface
- Specified by:
execute
in class OperationStep
- Returns:
- int
- Throws:
java.lang.Exception
getInputParameter
protected abstract java.util.Map<java.lang.String,java.lang.Object> getInputParameter()
- Construct the input parameters using the data from the operation context
or getting from data store.
- Parameters:
inputParameters
- the JRules input parameters
processResult
protected abstract int processResult(java.util.Map<java.lang.String,java.lang.Object> result)
- Subclass override this method to process the result
- Parameters:
result
-
(c) Copyright IBM Corporation 1998, 2010