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):
- 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