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):
%3 workflow::fsm::get_states workflow::fsm::get_states (public) workflow::state::fsm::generate_spec workflow::state::fsm::generate_spec (private) workflow::state::fsm::get_element workflow::state::fsm::get_element (public) workflow::state::fsm::generate_states_spec workflow::state::fsm::generate_states_spec workflow::state::fsm::generate_states_spec->workflow::fsm::get_states workflow::state::fsm::generate_states_spec->workflow::state::fsm::generate_spec workflow::state::fsm::generate_states_spec->workflow::state::fsm::get_element

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

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