in order to complete the assignment of workflow class , i wrote this...very simple and fail to get persistence with database.