20.14.1.4 Editing a Task Definition
Edit Task Definition details from the Shared Components page, under the Workflows and Automations heading.
- Example: Editing Task Definition Participants
Edit Task Definition Participants by accessing the Task Definition in the Shared Components page. - Example: Adding a Vacation Rule Procedure
Add a vacation rule by editing the Task Definition in the Shared Components page. - Example: Editing Task Definition Parameters
Edit Task Definition Parameters by accessing the Task Definition in the Shared Components page. - Example: Adding and Editing Task Definition Actions
Add and edit Task Definition Actions by accessing the task definition in the Shared Components page.
Parent topic: Managing Task Definitions
20.14.1.4.1 Example: Editing Task Definition Participants
Edit Task Definition Participants by accessing the Task Definition in the Shared Components page.
To edit Task Definition Participants:
- Select the Sample Workflows, Approvals, and Tasks app.
- Navigate to the Task Definitions page:
- On the Application home page, click Shared Components.
- Under Workflows and Automations, select Task Definitions.
- Click Job Change.
- Under Participants, select the row where Participant Type is
Potential Owner
and Value isBo
. - Click Edit.
- Change the Participant Type from
Potential Owner
toBusiness Administrator
. - Click Apply Changes.
Parent topic: Editing a Task Definition
20.14.1.4.2 Example: Adding a Vacation Rule Procedure
Add a vacation rule by editing the Task Definition in the Shared Components page.
Note:
This section describes adding a vacation rule procedure to a task definition. You can also add a vacation rule procedure to the application definition. If you add a vacation rule procedure to the application definition, the vacation rule applies to all tasks in the task definition.Tip:
A vacation rule defined at the task definition level overrides a vacation rule defined at the application level.procedure alternate_job_approvers(
p_param in apex_human_task.t_vacation_rule_input,
p_result out apex_human_task.t_vacation_rule_result)
is
l_result apex_human_task.t_vacation_rule_result;
l_changes apex_human_task.t_task_participant_changes;
l_participants apex_human_task.t_task_participants;
l_new_participant apex_human_task.t_task_participant;
l_old_participant apex_human_task.t_task_participant;
l_has_changed boolean := false;
l_index pls_integer := 1;
begin
l_participants := p_param.original_participants;
for i in 1..l_participants.count loop
if l_participants(i).value = 'JANE' then
l_old_participant := l_participants(i);
l_new_participant.value := 'SCOTT';
l_new_participant.type := 'POTENTIAL_OWNER';
l_new_participant.identity := 'USER';
l_has_changed := true;
end if;
end loop;
if l_has_changed then
l_participants(l_participants.count + 1) := l_new_participant;
l_changes(l_index).old_participant := l_old_participant;
l_changes(l_index).new_participant := l_new_participant;
l_changes(l_index).change_reason := 'Jane is out on maternity leave';
end if;
l_result.participant_changes := l_changes;
l_result.has_participant_changes := l_has_changed;
p_result := l_result;
end;
For more information on adding a procedure, see Creating a Procedure in Oracle APEX SQL Workshop
Guide.
To add a vacation rule procedure:
Parent topic: Editing a Task Definition
20.14.1.4.3 Example: Editing Task Definition Parameters
Edit Task Definition Parameters by accessing the Task Definition in the Shared Components page.
To edit Task Definition Parameters:
Parent topic: Editing a Task Definition
20.14.1.4.4 Example: Adding and Editing Task Definition Actions
Add and edit Task Definition Actions by accessing the task definition in the Shared Components page.
CREATE TABLE EBA_DEMO_APPR_METRICS(
ID NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY PRIMARY KEY,
TASK_DEF_STATIC_ID VARCHAR2(255),
OUTCOME_CODE VARCHAR2(32),
APPROVER VARCHAR2(255),
APPROVAL_DATE DATE,
DAYS_ELAPSED NUMBER
);
To add and edit Task Definition Actions:
- Select the Sample Workflows, Approvals, and Tasks app.
- Navigate to the Task Definitions page:
- On the Application home page, click Shared Components.
- Under Workflows and Automations, select Task Definitions.
- Click Salary Change.
- In the Actions section, click Add Action.
- The Error Handling, Server Side Condition, and Advanced sections can be left as-is.
- Click Create.
- Click Apply Changes.
EBA_DEMO_APPR_METRICS
every time a Salary Change task is completed. You could set up an interactive report based on this table to allow users to view metrics on approval tasks.
Parent topic: Editing a Task Definition