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):
- 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 $resultXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/workflow/tcl/role-procs.xql