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):
- 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