workflow::state::fsm::generate_states_spec (private)
workflow::state::fsm::generate_states_spec -workflow_id workflow_id
Defined in packages/workflow/tcl/state-procs.tcl
Generate the spec for the block containing the definition of all states for the workflow.
- Switches:
- -workflow_id (required)
- The id of the workflow to get the states spec for
- Returns:
- The states spec
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # states(short_name) { ... state-spec ... } set states_list [list] foreach state_id [workflow::fsm::get_states -workflow_id $workflow_id] { lappend states_list [get_element -state_id $state_id -element short_name] [generate_spec -state_id $state_id] } return $states_listXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/workflow/tcl/state-procs.xql