IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel
Class AbstractPolicyOperationStep

java.lang.Object
  extended by com.ibm.btt.base.OperationStep
      extended by 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.


Field Summary
static java.lang.String REFRULESERVICE
           
 
Fields inherited from class com.ibm.btt.base.OperationStep
RC_ERROR, RC_OK
 
Constructor Summary
AbstractPolicyOperationStep()
           
 
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
 

Field Detail

REFRULESERVICE

public static final java.lang.String REFRULESERVICE
See Also:
Constant Field Values
Constructor Detail

AbstractPolicyOperationStep

public AbstractPolicyOperationStep()
Method Detail

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 -

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010