postgresql7.1 select case_id, acs_object__name(object_id) as object_name, state, workflow_key from wf_cases where case_id = :case_id