8.7 GET_LAST_RUN_TIMESTAMPファンクション
このファンクションは、最新の自動化実行に関する情報を取得します。
構文
APEX_AUTOMATION.GET_LAST_RUN_TIMESTAMP(
    p_application_id         IN NUMBER   DEFAULT apex_application.g_flow_id,
    p_static_id              IN VARCHAR2 )
    RETURN timestamp with time zone;パラメータ
| パラメータ | 説明 | 
|---|---|
| p_application_id | 自動化を含むアプリケーションのID。 | 
| p_static_id | 実行する自動化の静的ID。 | 
戻り値
| 戻り値 | 説明 | 
|---|---|
| * | 最後に成功した自動化実行のタイムスタンプ。 | 
例
この例では、my_emp_table_automationが最後に正常に実行されたときのタイムスタンプを取得します。
                  
DECLARE
    l_last_run_ts timestamp with time zone;
BEGIN
    apex_session.create_session( 100, 1, 'ADMIN' );
    l_last_run := apex_automation.get_last_run_timestamp(
                       p_static_id    => 'my_emp_table_automation' );
    dbms_output.put_line( 'The automation''s last run was as of: ' || l_last_run );
END;
親トピック: APEX_AUTOMATION