workflow::state::fsm::get_id (public)

 workflow::state::fsm::get_id -workflow_id workflow_id \
    -short_name short_name

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

Return the id of the state with given short name

Switches:
-workflow_id
(required)
The id of the workflow the state belongs to.
-short_name
(required)
The name of the state to return the id for.
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::status_pretty bug_tracker::status_pretty (public) workflow::state::fsm::get_id workflow::state::fsm::get_id bug_tracker::status_pretty->workflow::state::fsm::get_id workflow::action::fsm::edit workflow::action::fsm::edit (public) workflow::action::fsm::edit->workflow::state::fsm::get_id db_string db_string (public) workflow::state::fsm::get_id->db_string

Testcases:
No testcase defined.
Source code:
    return [db_string select_id {}]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="workflow::state::fsm::get_id.select_id">
    <querytext>
        select state_id 
        from   workflow_fsm_states
        where  short_name = :short_name
        and    workflow_id = :workflow_id
    </querytext>
</fullquery>
packages/workflow/tcl/state-procs.xql

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