protected void processIteration(Object[] iterationData)
throws ActivityProcessingException, ActivityTerminatedException,
ActivityUserException
{
TupleListIterator tupleList = (TupleListIterator) iterationData[0];
ListIterator columnList = (ListIterator) iterationData[1];
ListIterator methodsList = (ListIterator) iterationData[2];
ListIterator causeList = (ListIterator) iterationData[3];
ListIterator parameterList = (ListIterator) iterationData[4];
PMMLDocument pmml = (PMMLDocument) iterationData[5];
Integer column;
while ((column = (Integer) columnList.nextValue()) != null)
{
String method = (String) methodsList.nextValue();
String cause = (String) causeList.nextValue();
Object[] parameters = (Object[]) parameterList.nextValue();
if (method == null || cause == null || parameters == null)
{
throw new ActivityUserException(
new UnmatchedInputException(
new String[] {
INPUT_COLUMNS,
INPUT_METHODS,
INPUT_CAUSE,
INPUT_PARAMETERS },
new Object[] {
column, method, cause, parameters }));
}
DPPMethodForColumn methodForColumn = loadMethod(
column.intValue(),
method,
cause,
parameters,
pmml.getPMML());
mColumnMethods.put(column, methodForColumn);
}
if (methodsList.nextValue() != null
|| causeList.nextValue() != null
|| parameterList.nextValue() != null)
{
throw new ActivityUserException(
new UnmatchedInputException(
new String[] {
INPUT_COLUMNS,