workflow::action::get_element (public)

 workflow::action::get_element [ -action_id action_id ] \
    [ -one_id one_id ] -element element

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

Return a single element from the information about a action.

Switches:
-action_id (optional)
The ID of the action
-one_id (optional)
Same as action_id, just used for consistency across roles/actions/states.
-element (required)
The element you want
Returns:
The element you asked for
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::scheduled::close_bugs bug_tracker::scheduled::close_bugs (public) workflow::action::get_element workflow::action::get_element bug_tracker::scheduled::close_bugs->workflow::action::get_element packages/acs-tcl/lib/page-error.tcl packages/acs-tcl/ lib/page-error.tcl packages/acs-tcl/lib/page-error.tcl->workflow::action::get_element packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl packages/bug-tracker/www/bug.tcl->workflow::action::get_element packages/bug-tracker/www/bulk-update-op.tcl packages/bug-tracker/ www/bulk-update-op.tcl packages/bug-tracker/www/bulk-update-op.tcl->workflow::action::get_element packages/bug-tracker/www/related-file-add.tcl packages/bug-tracker/ www/related-file-add.tcl packages/bug-tracker/www/related-file-add.tcl->workflow::action::get_element workflow::action::get workflow::action::get (public) workflow::action::get_element->workflow::action::get

Testcases:
No testcase defined.
Source code:
    if { $action_id eq "" } {
        if { $one_id eq "" } {
            error "You must supply either action_id or one_id"
        }
        set action_id $one_id
    } else {
        if { $one_id ne "" } {
            error "You can only supply either action_id or one_id"
        }
    }
    get -action_id $action_id -array row
    return $row($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

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