Recompile a WORKFLOW from within a Fix Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Background: we're doing a major cleanup and overhaul of stage names, standardizing names and spellings, removing duplicate stage names, etc., impacting a large number of FLOWS and WORKFLOWS. Rather than manually opening up each flow and workflow and manipulating the stages names, we've written a fix script that updates the stage tables (wf_stage, sys_hub_flow_stage, wf_stage_default, and stage_set_entry) through queries.
After updating and confirming the tables were correct, we also confirmed that the new stage names appear correctly within Flow Designer and Workflow Editor. However, the OLD stage names continue to be used in any newly generated RITMs produced by these same flows/workflows, until we take some action to trigger a recompile of the impacted flows/workflows, an action such as deactivating/activating a flow, or modifying/publishing a workflow.
The desire is to avoid manually touching dozens of individual flows and workflows, and to do this programmatically if possible.
I found that there is an API available to recompile a FLOW -