TransformWorkItemHandler transformWorkItemHandler = new TransformWorkItemHandler();
transformWorkItemHandler.registerTransformer(FileTransformer.class);
session.getWorkItemManager().registerWorkItemHandler("Transform", transformWorkItemHandler);
WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(session);
session.startProcess("com.sample.ruleflow");
logger.writeToDisk();
} catch (Throwable t) {
t.printStackTrace();
}
}