workflow::get_not_cached (private)
workflow::get_not_cached -workflow_id workflow_id
Defined in packages/workflow/tcl/workflow-procs.tcl
Private procedure that should never be used by application code - use workflow::get instead. Returns info about the workflow in an array list. Always goes to the database.
- Switches:
- -workflow_id (required)
- Author:
- Peter Marklund
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: db_1row workflow_info {} -column_array row set callbacks [list] set callback_ids [list] array set callback_impl_names [list] array set callbacks_array [list] db_foreach workflow_callbacks {} -column_array callback_row { lappend callbacks "$callback_row(impl_owner_name).$callback_row(impl_name)" lappend callback_ids $callback_row(impl_id) lappend callback_impl_names($callback_row(contract_name)) $callback_row(impl_name) set callbacks_array($callback_row(impl_id)) [array get callback_row] } set row(callbacks) $callbacks set row(callback_ids) $callback_ids set row(callback_impl_names) [array get callback_impl_names] set row(callbacks_array) [array get callbacks_array] return [array get row]Generic XQL file: <fullquery name="workflow::get_not_cached.workflow_info"> <querytext> select w.workflow_id, w.short_name, w.pretty_name, w.object_id, w.package_key, w.object_type, w.description, w.description_mime_type, a.short_name as initial_action, a.action_id as initial_action_id from workflows w left outer join workflow_actions a on (a.workflow_id = w.workflow_id and a.parent_action_id is null and a.trigger_type = 'init') where w.workflow_id = :workflow_id </querytext> </fullquery> <fullquery name="workflow::get_not_cached.workflow_callbacks"> <querytext> select impl.impl_id, impl.impl_name, impl.impl_owner_name, ctr.contract_name, wc.sort_order from workflow_callbacks wc, acs_sc_impls impl, acs_sc_bindings bind, acs_sc_contracts ctr where wc.workflow_id = :workflow_id and impl.impl_id = wc.acs_sc_impl_id and impl.impl_id = bind.impl_id and bind.contract_id = ctr.contract_id order by wc.sort_order </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