List activityInputs = getInputs(INPUT_PARAMETERS);
ActivityInput[] inputs = new ActivityInput[activityInputs.size()+1];
for (int i=0; i<inputs.length-1; i++)
{
inputs[i] = new TypedActivityInput(INPUT_PARAMETERS, Object.class);
inputs[i].setBlockReader((BlockReader)activityInputs.get(i));
}
inputs[inputs.length-1] = new TupleListActivityInput(INPUT_DATA);
if (hasInput(INPUT_DATA))
{