select ot.pretty_name as workflow_name,
t.transition_name
from acs_object_types ot,
wf_transitions t
where ot.object_type = :workflow_key
and t.workflow_key = ot.object_type
and t.transition_key = :transition_key
select p.header,
p.template_url
from wf_context_task_panels p
where p.workflow_key = :workflow_key
and p.transition_key = :transition_key
and p.context_key = :context_key
and p.sort_key = :sort_key