select ot.pretty_name as workflow_name
from acs_object_types ot
where ot.object_type = :workflow_key
select case when count(*) = 0 then 0 else 1 end from wf_places
where workflow_key = :workflow_key
and place_key = 'start'
select case when count(*) = 0 then 0 else 1 end from wf_places
where workflow_key = :workflow_key
and place_key = 'start'