postgresql7.2
select workflow_case_pkg__delete(:case_id)
insert into workflow_case_enabled_actions
(enabled_action_id,
case_id,
action_id,
parent_enabled_action_id,
assigned_p,
execution_time)
select :enabled_action_id,
:case_id,
:action_id,
:parent_enabled_action_id,
:db_assigned_p,
current_timestamp + a.timeout
from workflow_actions a
where a.action_id = :action_id