8.3 EXECUTEプロシージャ
このプロシージャは、自動化を実行します。
構文
APEX_AUTOMATION.EXECUTE(
    p_application_id    IN NUMBER                   DEFAULT apex_application.g_flow_id,
    p_static_id         IN VARCHAR2,
    p_filters           IN apex_exec.t_filters      DEFAULT apex_exec.c_empty_filters,
    p_order_bys         IN apex_exec.t_order_bys    DEFAULT apex_exec.c_empty_order_bys );パラメータ
| パラメータ | 説明 | 
|---|---|
| p_application_id | 自動化を含むアプリケーションのID。 | 
| p_static_id | 実行する自動化の静的ID。 | 
| p_filters | 自動化問合せに適用する追加のフィルタ。 | 
| p_order_bys | 自動化問合せに適用する ORDER BY句。 | 
例
この例では、自動化my_emp_table_automationを実行し、DEPTNO列(DEPTNO = 10)の自動化問合せにフィルタを適用します。
                  
DECLARE
    l_filters apex_exec.t_filters;
BEGIN
    apex_session.create_session( 100, 1, 'ADMIN' );
    apex_exec.add_filter(
        p_filters        => l_filters,
        p_column_name    => 'DEPTNO',
        p_filter_type    => apex_exec.c_filter_eq,
        p_value          => 10 );
    apex_automation.execute(
        p_static_id       => 'my_emp_table_automation',
        p_filters         => l_filters );
END;親トピック: APEX_AUTOMATION