Get workflow defination from db and pass it to controller. develop workflow entity in project.