workflow::role::get_existing_short_names (public)

 workflow::role::get_existing_short_names -workflow_id workflow_id \
    [ -ignore_role_id ignore_role_id ]

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

Returns a list of existing role 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_role_id (optional)
If specified, the short_name for the given role will not be included in the result set.

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

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

    foreach role_id [workflow::get_roles -all -workflow_id $workflow_id] {
        if { $ignore_role_id eq "" || $ignore_role_id ne $role_id } {
            lappend result [workflow::role::get_element -role_id $role_id -element short_name]
        }
    }

    return $result
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/role-procs.xql

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