workflow::case::flush_cache (private)

 workflow::case::flush_cache [ -case_id case_id ]

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

Flush all cached data for a given case or for all cases if none is specified.

Switches:
-case_id (optional)
The id of the workflow case to flush. If not provided the cache will be flushed for all workflow cases.
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::action::execute workflow::case::action::execute (public) workflow::case::flush_cache workflow::case::flush_cache workflow::case::action::execute->workflow::case::flush_cache workflow::case::get_actual_state workflow::case::get_actual_state (private) workflow::case::get_actual_state->workflow::case::flush_cache workflow::case::state_changed_handler workflow::case::state_changed_handler (private) workflow::case::state_changed_handler->workflow::case::flush_cache workflow::deputy::delete workflow::deputy::delete (public) workflow::deputy::delete->workflow::case::flush_cache workflow::deputy::new workflow::deputy::new (public) workflow::deputy::new->workflow::case::flush_cache util_memoize_flush util_memoize_flush (public) workflow::case::flush_cache->util_memoize_flush util_memoize_flush_pattern util_memoize_flush_pattern (public) workflow::case::flush_cache->util_memoize_flush_pattern workflow::case::fsm::get_info_not_cached workflow::case::fsm::get_info_not_cached (private) workflow::case::flush_cache->workflow::case::fsm::get_info_not_cached workflow::case::get_enabled_action_ids_not_cached workflow::case::get_enabled_action_ids_not_cached (public) workflow::case::flush_cache->workflow::case::get_enabled_action_ids_not_cached workflow::case::get_user_roles_not_cached workflow::case::get_user_roles_not_cached (private) workflow::case::flush_cache->workflow::case::get_user_roles_not_cached

Testcases:
No testcase defined.
Source code:
    foreach proc_name {
        workflow::case::fsm::get_info_not_cached
        workflow::case::get_user_roles_not_cached
        workflow::case::get_enabled_action_ids_not_cached
    } {
        if {$case_id eq ""} {
           util_memoize_flush_pattern "$proc_name *"
        } else {
           util_memoize_flush_pattern "$proc_name $case_id *"
        }
    }

    if {$case_id eq ""} {
       util_memoize_flush_pattern "workflow::case::get_activity_log_info_not_cached -case_id *"
       util_memoize_flush_pattern "workflow::case::get_enabled_actions_not_cached *"
    } else {
       util_memoize_flush "workflow::case::get_activity_log_info_not_cached -case_id $case_id"
       util_memoize_flush "workflow::case::get_enabled_actions_not_cached $case_id"
    }

    # Flush role info (assignees etc)
    workflow::case::role::flush_cache -case_id $case_id
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: