workflow::action::get_callbacks (private)

 workflow::action::get_callbacks -action_id action_id \
    -contract_name contract_name

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

Return a list of implementation names for the callbacks of a given workflow action.

Switches:
-action_id
(required)
-contract_name
(required)
Author:
Peter Marklund
See Also:
  • workflow::case::role::get_callbacks

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::action::do_side_effects workflow::case::action::do_side_effects (public) workflow::action::get_callbacks workflow::action::get_callbacks workflow::case::action::do_side_effects->workflow::action::get_callbacks workflow::action::get_from_request_cache workflow::action::get_from_request_cache (private) workflow::action::get_callbacks->workflow::action::get_from_request_cache

Testcases:
No testcase defined.
Source code:
    array set callbacks [get_from_request_cache $action_id callbacks_array]
    set callback_ids [get_from_request_cache $action_id callback_ids]

    # Loop over the callbacks and return the impl_names of those with a matching
    # contract name
    set impl_names [list]
    foreach callback_id $callback_ids {
        array set one_callback $callbacks($callback_id)

        if {$one_callback(contract_name) eq $contract_name} {
            lappend impl_names $one_callback(impl_name)
        }
    }

    return $impl_names
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

[ hide source ]
Show another procedure: