Cloning Workflow seems to Loose AppPackage setups
We have multi Stage Workflow that seems to be constantly changed. And for some reason When I clone the Workflow , The New workflow is missing all app package Criteria and settings...
So Below is some sql That I have used to Fix it... So I then can adjust further with the new requirements.
/* Please note Ours is simple multiple Stages and multiple steps.. Please use at your discretion, But it should give you a start */
--- Copy Stage
update ps_eoawcrta A set (DESCR, EOAWCRTA_SOURCE, QRYNAME, SQLID, PACKAGEROOT, APPCLASS_PATH, APP_CLASS, EOAWCRITERIA_FLG) =
(select crt.DESCR, crt.EOAWCRTA_SOURCE, crt.QRYNAME, crt.SQLID, crt.PACKAGEROOT, crt.APPCLASS_PATH, crt.APP_CLASS, crt.EOAWCRITERIA_FLG from