select pretty_name, state_id from workflow_fsm_states where workflow_id=:workflow_id