workflow::action::get_id (public)

 workflow::action::get_id -workflow_id workflow_id \
    -short_name short_name

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

Return the action_id of the action with the given short_name in the given workflow.

Switches:
-workflow_id (required)
The ID of the workflow
-short_name (required)
The short_name of the action
Returns:
action_id of the desired action, or the empty string if it can't be found.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/bulk-update-op.tcl packages/bug-tracker/ www/bulk-update-op.tcl workflow::action::get_id workflow::action::get_id packages/bug-tracker/www/bulk-update-op.tcl->workflow::action::get_id packages/bug-tracker/www/patch.tcl packages/bug-tracker/ www/patch.tcl packages/bug-tracker/www/patch.tcl->workflow::action::get_id workflow::action::edit workflow::action::edit (public) workflow::action::edit->workflow::action::get_id workflow::state::fsm::edit workflow::state::fsm::edit (public) workflow::state::fsm::edit->workflow::action::get_id workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::run_bug_tracker_test->workflow::action::get_id workflow::action::refresh_request_cache workflow::action::refresh_request_cache (private) workflow::action::get_id->workflow::action::refresh_request_cache

Testcases:
No testcase defined.
Source code:
    workflow::action::refresh_request_cache $workflow_id
    global __workflow_action_data,${workflow_id}

    foreach action_id [set __workflow_action_data,${workflow_id}(action_ids)] {
        array set one_action [set __workflow_action_data,${workflow_id}($action_id)]

        if {$one_action(short_name) eq $short_name} {
            return $action_id
        }
    }

    error "workflow::action::get_id: Action with short_name $short_name not found for workflow $workflow_id"
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 ] | [ make this the default ]
Show another procedure: