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