workflow::role::get_element (public)

 workflow::role::get_element [ -role_id role_id ] [ -one_id one_id ] \
    -element element

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

Return a single element from the information about a role.

Switches:
-role_id (optional)
The id of the role to get an element for.
-one_id (optional)
Same as role_id, just used for consistency across roles/actions/states.
-element (required)
Returns:
element The element you asked for
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::action::notify workflow::case::action::notify (public) workflow::role::get_element workflow::role::get_element workflow::case::action::notify->workflow::role::get_element workflow::role::edit workflow::role::edit (public) workflow::role::edit->workflow::role::get_element workflow::role::get_callbacks workflow::role::get_callbacks (private) workflow::role::get_callbacks->workflow::role::get_element workflow::role::get_existing_short_names workflow::role::get_existing_short_names (public) workflow::role::get_existing_short_names->workflow::role::get_element workflow::role::get workflow::role::get (public) workflow::role::get_element->workflow::role::get

Testcases:
No testcase defined.
Source code:
    if { $role_id eq "" } {
        if { $one_id eq "" } {
            error "You must supply either role_id or one_id"
        }
        set role_id $one_id
    } else {
        if { $one_id ne "" } {
            error "You can only supply either role_id or one_id"
        }
    }
    get -role_id $role_id -array row
    return $row($element)
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/role-procs.xql

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