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