I'm not sure if this is exactly what you are looking for, but every time
we update a lifecycle template to add a state or change an ad hoc access
control rule, we have to run this script where the main object table
(underlined in red text, below), and the lifecycle template name changes
(underlined in blue text, below) in order to make sure that the latest
iteration of all objects using that template point to the latest iteration
of the lifecycle template. This is so common that there really should be
a "Publish" button in the Lifecycle Administrator, but until then, here is
the SQL.
update wtchangeactivity2 set ida3a2state = (
select ida2a2 from lifecycletemplate where ida3masterreference
IN ( select ida2a2 from lifecycletemplateMaster where name
= 'My Life Cycle Template Name')
and latestiterationinfo = 1
);
Al Anderson