workflow::get_id_not_cached (private)

 workflow::get_id_not_cached [ -package_key package_key ] \
    [ -object_id object_id ] -short_name short_name

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

Private proc not to be used by applications, use workflow::get_id instead.

Switches:
-package_key (optional)
-object_id (optional)
-short_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::get_id workflow::get_id (public) workflow::get_id_not_cached workflow::get_id_not_cached workflow::get_id->workflow::get_id_not_cached ad_conn ad_conn (public) workflow::get_id_not_cached->ad_conn db_string db_string (public) workflow::get_id_not_cached->db_string

Testcases:
No testcase defined.
Source code:
    if { $package_key eq "" } {
        if { $object_id eq "" } {
            if { [ad_conn isconnected] } {
                set package_key [ad_conn package_key]
                set query_name select_workflow_id_by_package_key
            } else {
                error "You must supply either package_key or object_id, or there must be a current connection"
            }
        } else {
            set query_name select_workflow_id_by_object_id
        }
    } else {
        if { $object_id eq "" } {
            set query_name select_workflow_id_by_package_key
        } else {
            error "You must supply only one of either package_key or object_id"
        }
    }

    return [db_string $query_name {} -default {}]
Generic XQL file:
<fullquery name="workflow::get_id_not_cached.select_workflow_id_by_object_id">
    <querytext>
      select workflow_id
      from   workflows
      where  object_id = :object_id
      and    short_name = :short_name                        
    </querytext>
</fullquery>

<fullquery name="workflow::get_id_not_cached.select_workflow_id_by_package_key">
    <querytext>
      select workflow_id
      from   workflows
      where  package_key = :package_key
      and    short_name = :short_name                        
      and    object_id is null
    </querytext>
</fullquery>
packages/workflow/tcl/workflow-procs.xql

PostgreSQL XQL file:
packages/workflow/tcl/workflow-procs-postgresql.xql

Oracle XQL file:
packages/workflow/tcl/workflow-procs-oracle.xql

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