mConfigure.addActivity(source, ds, targetPipeline);
ProcessingElement obtain =
new ProcessingElement(ObtainFromDataSource.DEFAULT_ACTIVITY_NAME);
obtain.createInput(ObtainFromDataSource.INPUT_MODE);
obtain.addInput(ObtainFromDataSource.INPUT_MODE, new StringData(ModeType.BLOCK.toString()));
obtain.createInput(ObtainFromDataSource.INPUT_NUM_OF_BLOCKS);
obtain.addInput(ObtainFromDataSource.INPUT_NUM_OF_BLOCKS, new IntegerData(100));
obtain.createInput(ObtainFromDataSource.INPUT_DATA_SOURCE_RESOURCE);
obtain.connectInput(ObtainFromDataSource.INPUT_DATA_SOURCE_RESOURCE, output);
obtain.createOutput(ObtainFromDataSource.OUTPUT_DATA);