30.30 SET_TASK_PARAMETER_VALUES Procedure

This procedure updates the values of the parameter(s) of this task. This procedure only updates the parameters that are marked as "updatable" in the task definition.

Only a Business Administrator or the owner of the task can run this procedure.

Syntax

APEX_HUMAN_TASK.SET_TASK_PARAMETER_VALUES (
    p_task_id                IN NUMBER,
    p_parameters             IN t_task_parameters,
    p_raise_error            IN BOOLEAN DEFAULT TRUE );

Parameters

Parameter Description
p_task_id The Task ID.
p_parameters The list of changed parameters.
p_raise_error

Default TRUE.

When TRUE, the API raises an exception and cancels updates to the parameters.

If FALSE, the API ignores raised exceptions if the list contains one or more incorrect parameter static IDs or parameters that are not marked as updatable in the Task Definition. The API updates the rest of the parameters.

Example

BEGIN
    apex_human_task.set_task_parameter_values(
        p_task_id            => 1234,
        p_parameters         => apex_human_task.t_task_parameters(
            1 => apex_human_task.t_task_parameter(static_id => 'REQ_DATE',
                                                    string_value => sysdate+10),
            3 => apex_human_task.t_task_parameter(static_id => 'REQ_AMOUNT',
                                                 string_value => l_req_amount));
END;