workflow::get_existing_short_names (public)
workflow::get_existing_short_names -package_key package_key \ [ -object_id object_id ] \ [ -ignore_workflow_id ignore_workflow_id ]
Defined in packages/workflow/tcl/workflow-procs.tcl
Returns a list of existing workflow short_names for this package_key and object_id. Useful when you're trying to ensure a short_name is unique, or construct a new short_name that is guaranteed to be unique.
- Switches:
- -package_key (required)
- -object_id (optional)
- -ignore_workflow_id (optional)
- If specified, the short_name for the given workflow will not be included in the result set.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set result [list] db_foreach select_workflows { select workflow_id, short_name from workflows where package_key = :package_key and object_id = :object_id } { if { $ignore_workflow_id eq "" || $ignore_workflow_id ne $workflow_id } { lappend result $short_name } } return $resultGeneric XQL file: packages/workflow/tcl/workflow-procs.xql
PostgreSQL XQL file: packages/workflow/tcl/workflow-procs-postgresql.xql
Oracle XQL file: packages/workflow/tcl/workflow-procs-oracle.xql