workflow::action::get_existing_short_names (public)

 workflow::action::get_existing_short_names -workflow_id workflow_id \
    [ -ignore_action_id ignore_action_id ]

Defined in packages/workflow/tcl/action-procs.tcl

Returns a list of existing action short_names in this workflow. 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:
-workflow_id (required)
-ignore_action_id (optional)
If specified, the short_name for the given action will not be included in the result set.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::generate_short_name workflow::action::generate_short_name (public) workflow::action::get_existing_short_names workflow::action::get_existing_short_names workflow::action::generate_short_name->workflow::action::get_existing_short_names workflow::action::get_element workflow::action::get_element (public) workflow::action::get_existing_short_names->workflow::action::get_element workflow::get_actions workflow::get_actions (public) workflow::action::get_existing_short_names->workflow::get_actions

Testcases:
No testcase defined.
Source code:
    set result [list]

    foreach action_id [workflow::get_actions -all -workflow_id $workflow_id] {
        if { $ignore_action_id eq "" || $ignore_action_id ne $action_id } {
            lappend result [workflow::action::get_element -action_id $action_id -element short_name]
        }
    }

    return $result
Generic XQL file:
packages/workflow/tcl/action-procs.xql

PostgreSQL XQL file:
packages/workflow/tcl/action-procs-postgresql.xql

Oracle XQL file:
packages/workflow/tcl/action-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: