workflow::state::fsm::get_ids (private)

 workflow::state::fsm::get_ids [ -all ] -workflow_id workflow_id \
    [ -parent_action_id parent_action_id ]

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

Get the state_id's of all the states in the workflow.

Switches:
-all (optional, boolean)
-workflow_id (required)
The ID of the workflow
-parent_action_id (optional)
Returns:
list of state_id's.
Author:
Lars Pind <lars@collaboraid.biz>

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

Testcases:
No testcase defined.
Source code:
    # Use cached data
    array set state_data [workflow::state::fsm::get_all_info -workflow_id $workflow_id]
    if { $all_p } {
        return $state_data(state_ids)
    }
    set state_ids [list]
    foreach state_id $state_data(state_ids) {
        if { [workflow::state::fsm::get_element  -state_id $state_id  -element parent_action_id] == $parent_action_id } {
            lappend state_ids $state_id
        }
    }
    return $state_ids
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/state-procs.xql

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