workflow::action::get_from_request_cache (private)
workflow::action::get_from_request_cache action_id [ element ]
Defined in packages/workflow/tcl/action-procs.tcl
This provides some abstraction for the Workflow API cache and also some optimization - we only convert lists to arrays once per request. Should be used internally by the workflow API only.
- Parameters:
- action_id (required)
- element (optional)
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Get the cache with all actions set workflow_id [workflow::action::get_workflow_id -action_id $action_id] refresh_request_cache $workflow_id global __workflow_action_data,${workflow_id} array set workflow_data [workflow::action::get_all_info -workflow_id $workflow_id] # A single action set action_var_name __workflow_one_action,${action_id} global $action_var_name if { ![info exists $action_var_name] } { array set $action_var_name [set __workflow_action_data,${workflow_id}($action_id)] } if { $element eq "" } { return [array get $action_var_name] } else { return [set "${action_var_name}($element)"] }Generic XQL file: packages/workflow/tcl/action-procs.xql
PostgreSQL XQL file: packages/workflow/tcl/action-procs-postgresql.xql
Oracle XQL file: packages/workflow/tcl/action-procs-oracle.xql