44.6 IS_RUNNING Function

This function determines whether synchronization for the given REST data source is currently running.

Syntax

APEX_REST_SOURCE_SYNC.IS_RUNNING (
    p_application_id    IN  NUMBER DEFAULT wwv_flow.g_flow_id,
    p_module_static_id  IN  VARCHAR2 )
    RETURN BOOLEAN;

Parameters

Parameter Description
p_application_id ID of the application which contains the automation.
p_module_static_id Static ID of the automation to disable.

Returns

TRUE if synchronization is currently running. FALSE otherwise.

Example

The following example prints out whether synchronization is currently running.

BEGIN
    IF apex_rest_source_sync.is_running(
        p_application_id => 152,
        p_module_static_id => 'rest_movie' )
        THEN
            dbms_output.put_line( 'Synchronization is currently running.' );
        ELSE
            dbms_output.put_line( 'Synchronization is currently not running.' );
    END IF;
END;