workflow::case::role::assignees_remove (public)

 workflow::case::role::assignees_remove -case_id case_id \
    -role_id role_id

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

Remove all assignees in this role

Switches:
-case_id (required)
the ID of the case.
-role_id (required)
the ID of the role to remove the assignees from.
Author:
Ryan Gallimore

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::role::assignee_insert workflow::case::role::assignee_insert (public) workflow::case::role::assignees_remove workflow::case::role::assignees_remove workflow::case::role::assignee_insert->workflow::case::role::assignees_remove callback callback (public) workflow::case::role::assignees_remove->callback db_dml db_dml (public) workflow::case::role::assignees_remove->db_dml workflow::case::role::flush_cache workflow::case::role::flush_cache (private) workflow::case::role::assignees_remove->workflow::case::role::flush_cache workflow::case::role::get_assignees workflow::case::role::get_assignees (public) workflow::case::role::assignees_remove->workflow::case::role::get_assignees

Testcases:
No testcase defined.
Source code:
    set assignees [workflow::case::role::get_assignees -case_id $case_id -role_id $role_id]
    foreach assignee $assignees {
        array set elm $assignee
        if { ([info exists elm(party_id)] && $elm(party_id) ne "") } {
            callback workflow::case::role::after_unassign  -case_id $case_id  -party_id $elm(party_id)
        }
        array unset elm
    }

    db_dml delete_assignees {}

    workflow::case::role::flush_cache -case_id $case_id
Generic XQL file:
<fullquery name="workflow::case::role::assignees_remove.delete_assignees">
    <querytext>
        delete from workflow_case_role_party_map
        where  case_id = :case_id
        and    role_id = :role_id
    </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

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