update wf_transitions
set transition_name = :transition_name,
trigger_type = :trigger_type
where workflow_key = :workflow_key
and transition_key = :transition_key
select count(*) from wf_context_transition_info where workflow_key = :workflow_key and transition_key = :transition_key and context_key = 'default'
insert into wf_context_transition_info
(workflow_key, transition_key, context_key, estimated_minutes)
values (:workflow_key, :transition_key, 'default', :estimated_minutes)
update wf_context_transition_info set estimated_minutes = :estimated_minutes
where workflow_key = :workflow_key and transition_key = :transition_key and context_key = 'default'