workflow::state::fsm::get_element (public)

 workflow::state::fsm::get_element [ -state_id state_id ] \
    [ -one_id one_id ] -element element

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

Return a single element from the information about a state.

Switches:
-state_id (optional)
The ID of the workflow
-one_id (optional)
Same as state_id, just used for consistency across roles/actions/states.
-element (required)
Returns:
The element you asked for
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::state::fsm::edit workflow::state::fsm::edit (public) workflow::state::fsm::get_element workflow::state::fsm::get_element workflow::state::fsm::edit->workflow::state::fsm::get_element workflow::state::fsm::generate_states_spec workflow::state::fsm::generate_states_spec (private) workflow::state::fsm::generate_states_spec->workflow::state::fsm::get_element workflow::state::fsm::get_existing_short_names workflow::state::fsm::get_existing_short_names (public) workflow::state::fsm::get_existing_short_names->workflow::state::fsm::get_element workflow::state::fsm::get_ids workflow::state::fsm::get_ids (private) workflow::state::fsm::get_ids->workflow::state::fsm::get_element workflow::test::assert_case_state workflow::test::assert_case_state (public) workflow::test::assert_case_state->workflow::state::fsm::get_element workflow::state::fsm::get workflow::state::fsm::get (public) workflow::state::fsm::get_element->workflow::state::fsm::get

Testcases:
No testcase defined.
Source code:
    if { $state_id eq "" } {
        if { $one_id eq "" } {
            error "You must supply either state_id or one_id"
        }
        set state_id $one_id
    } else {
        if { $one_id ne "" } {
            error "You can only supply either state_id or one_id"
        }
    }

    get -state_id $state_id -array row
    return $row($element)
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/state-procs.xql

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