61.2 CONTINUE_ACTIVITY Procedure Signature 1

This procedure continues the Workflow at the given activity. The workflow activity must be in the "WAITING" state.

Syntax

APEX_WORKFLOW.CONTINUE_ACTIVITY (
    p_instance_id            IN NUMBER,
    p_static_id              IN VARCHAR2,
    p_activity_params        IN wwv_flow_global.vc_map,
    p_activity_status        IN t_activity_status DEFAULT
                                         c_activity_status_success );

Parameters

Parameter Description
p_instance_id ID of the Workflow.
p_static_id Static ID of the activity.
p_activity_params The parameters returned as part of the activity execution. If these parameters correspond to workflow variables, the values of those variables will get updated with what is provided here, before the workflow continues to the next activity.
p_activity_status The status of the activity. Default SUCCESS.

Example

The following example continues a Workflow activity.

DECLARE
   l_activity_params apex_global.vc_map;
BEGIN
   l_activity_result('TASK_OUTCOME'):='APPROVED';
   apex_workflow.continue_activity(
        p_instance_id          => 1234,
        p_static_id            => 'REQUEST_LEAVE_APPROVAL',
        p_activity_params      => l_activity_params);

END;