Add Task Processor for Farmer Register.
And rework task factory interface.

Signed-off-by: Yi Min Zhao <zyimin@cn.ibm.com>