Post-workflow

Overview

Post-workflow scripts are custom SQL steps that run after a workflow package has completed its assigned package activities. Use this script type for final workflow-level work, such as writing completion information, applying cleanup logic, or running SQL that should wait until the workflow has finished.

Function

Use Post-workflow when the SQL logic belongs at the end of a workflow package rather than before the workflow starts or during deployment. Scripts in this group are ordered by sequence number and then by script name in the navigation tree.

Post-workflow uses the shared Define script page. The editor stores the script type, script name, description, sequence number, inactive flag, SQL text, and workflow-package assignments. The package grid is visible for this type so the script can be assigned to the workflow packages where it should run.

When workflow automation is generated, assigned post-workflow scripts are grouped into a final post-scripts step. That step waits for the last activities in the workflow package to complete before running the selected SQL scripts.

Access

The Scripts branch contains a Post-workflow scripts node. Its context menu provides List post-workflow scripts and Add post-workflow script, both preselecting the Post-workflow script type.

How to access

Navigation tree

Scripts -> Post-workflow scripts -> List post-workflow scripts, or Add post-workflow script

Toolbar

Scripts

Diagram

Not direct. Use the Scripts list or navigation tree.

Visual element

Define script -> Script type -> Post-workflow

Screen overview

IDPropertyDescription
1Script typeSelects the SQL Script type. For this page the selected type is Post-workflow.
2NameDefines the script name. Save validation requires a non-empty value.
3DescriptionStores the optional script description shown in the script list.
4Sequence numberControls ordering inside the Post-workflow script group. A non-numeric value is rejected during validation.
5InactiveStores whether the script is disabled without deleting it.
6OriginalShows the editable SQL script text.
7ParsedShows the macro-parsed preview of the SQL script in a read-only field.
8ScriptContains the SQL body. Save validation requires a non-empty script.
9PackageLists workflow packages that can run this post-workflow script.
10RunAssigns the script to the selected workflow package. Clicking the Run column header toggles all visible assignments.
11CancelReturns to the previous page without saving changes.
12SaveValidates the script fields, stores the SQL Script, saves the workflow-package assignments, and refreshes the navigation tree.

List behavior

List post-workflow scripts opens the script list already scoped to Post-workflow scripts. The list can filter by script name, shows Name, Type, and Description, and opens the Define script page when a row is double-clicked.

The New button opens a new script with Post-workflow already selected. Delete removes the selected script after confirmation. The up and down buttons swap sequence numbers only between scripts of the same script type.

Related topics