workflow::case::role::get_picklist (public)
workflow::case::role::get_picklist -case_id case_id -role_id role_id
Defined in packages/workflow/tcl/case-procs.tcl
Get the picklist for this role.
- Switches:
- -case_id (required)
- the ID of the case.
- -role_id (required)
- the ID of the role.
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set contract_name [workflow::service_contract::role_assignee_pick_list] set party_id_list [list] db_transaction { set impl_names [workflow::role::get_callbacks -role_id $role_id -contract_name $contract_name] set object_id [workflow::case::get_element -case_id $case_id -element object_id] foreach impl_name $impl_names { # Call the service contract implementation set party_id_list [acs_sc::invoke -contract $contract_name -operation "GetPickList" -impl $impl_name -call_args [list $case_id $object_id $role_id]] if { [llength $party_id_list] != 0 } { # Return after the first non-empty list break } } } if { [ad_conn isconnected] && [ad_conn user_id] != 0 } { lappend party_id_list [ad_conn user_id] } if { [llength $party_id_list] > 0 } { set options [db_list_of_lists select_options {}] } else { set options {} } set options [concat { { "Unassigned" "" } } $options] lappend options { "Search..." ":search:"} return $optionsGeneric XQL file: <fullquery name="workflow::case::role::get_picklist.select_options"> <querytext> select acs_object.name(p.party_id) || ' (' || p.email || ')' as label, p.party_id from parties p where p.party_id in ([join $party_id_list ", "]) order by label </querytext> </fullquery>packages/workflow/tcl/case-procs.xql
PostgreSQL XQL file: packages/workflow/tcl/case-procs-postgresql.xql
Oracle XQL file: packages/workflow/tcl/case-procs-oracle.xql