select
one_line,
description,
process_task_id
FROM
pm_process_task
WHERE
process_task_id in ([join $process_task_id ","])
ORDER BY
process_task_id
select
first_names || ' ' || last_name || ' (' || email || ')' as who,
person_id
FROM
cc_users
ORDER BY
first_names, last_name
select
one_line,
role_id
FROM
pm_roles
ORDER BY
sort_order
delete from pm_process_task_assignment
where process_task_id in ([join $process_task_id ","])
insert into pm_process_task_assignment
(process_task_id,
role_id,
party_id)
values
(:t_id,
:r_id,
:p_id)
select
party_id
FROM
pm_process_task_assignment
WHERE
process_task_id = :tiid
select
role_id
FROM
pm_process_task_assignment a
WHERE
process_task_id = :tiid