workflow::case::get_enabled_action_ids_not_cached (public)

 workflow::case::get_enabled_action_ids_not_cached case_id \
    [ trigger_type ]

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

Used internally by the workflow API only. Goes to the database to get the enabled actions for the case.

Parameters:
case_id
trigger_type (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::flush_cache workflow::case::flush_cache (private) workflow::case::get_enabled_action_ids_not_cached workflow::case::get_enabled_action_ids_not_cached workflow::case::flush_cache->workflow::case::get_enabled_action_ids_not_cached workflow::case::flush_cache0 workflow::case::flush_cache0 (private) workflow::case::flush_cache0->workflow::case::get_enabled_action_ids_not_cached workflow::case::get_enabled_action_ids workflow::case::get_enabled_action_ids (public) workflow::case::get_enabled_action_ids->workflow::case::get_enabled_action_ids_not_cached db_list db_list (public) workflow::case::get_enabled_action_ids_not_cached->db_list

Testcases:
No testcase defined.
Source code:
    if { $trigger_type eq "" } {
        return [db_list select_enabled_actions {
            select ena.enabled_action_id
            from   workflow_case_enabled_actions ena
            where  ena.case_id = :case_id
            and    ena.completed_p = 'f'
        }]
    } else {
        return [db_list select_enabled_actions {
            select ena.enabled_action_id
            from   workflow_case_enabled_actions ena,
                   workflow_actions a
            where  ena.case_id = :case_id
            and    a.action_id = ena.action_id
            and    ena.completed_p = 'f'
            and    a.trigger_type = 'user'
            order  by a.sort_order
        }]
    }
Generic XQL file:
packages/workflow/tcl/case-procs.xql

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

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

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