[Add]convert Workflow DB to enum