workflow::state::fsm::get_existing_short_names (public)

 workflow::state::fsm::get_existing_short_names \
    -workflow_id workflow_id [ -ignore_state_id ignore_state_id ]

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

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

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

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

    foreach state_id [workflow::fsm::get_states -all -workflow_id $workflow_id] {
        if { $ignore_state_id eq "" || $ignore_state_id ne $state_id } {
            lappend result [workflow::state::fsm::get_element -state_id $state_id -element short_name]
        }
    }

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

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