workflow::role::get_id (public)
workflow::role::get_id -workflow_id workflow_id -short_name short_name
Defined in packages/workflow/tcl/role-procs.tcl
Return the role_id of the role 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 role
- Returns:
- role_id of the desired role, or the empty string if it can't be found.
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Get role info from cache array set role_data [workflow::role::get_all_info -workflow_id $workflow_id] foreach role_id $role_data(role_ids) { array set one_role $role_data($role_id) if {$one_role(short_name) eq $short_name} { return $one_role(role_id) } } error "workflow::role::get_id role with short_name $short_name not found for workflow $workflow_id"XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/workflow/tcl/role-procs.xql