我有以下问题:我创建了一个触发器,该触发器在将一行插入表中时被激活。然后触发器启动一个过程。然后该过程开始工作流程。
当我开始程序时,它工作正常。但是当我通过输入新行启动触发器时,出现以下错误:
Zeile 12: ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
ORA-06512: in "OWBSYS.WB_RT_API_EXEC", Zeile 759
ORA-06512: in "OWB***.EXECUTE_WF_ABC", Zeile 10
ORA-06512: in "OWB***.START_EXECUTE_WF_ABC", Zeile 7
ORA-06512: in "OWB***.ABC_WORKFLOW", Zeile 2
这是我的触发器:
create or replace
TRIGGER ABC_WORKFLOW
BEFORE INSERT
ON OWB***.STG_ABC
FOR EACH ROW
BEGIN
OWB***.EXECUTE_WF_ABC;
END ;
这是我的程序:
create or replace
PROCEDURE EXECUTE_WF_ABC
AS
status NUMBER;
-- paramlist VARCHAR2(30000 CHAR);
BEGIN
owbsys.wb_rt_script_util.set_workspace ('OWBREPOWN.OWB***');
status :=
owbsys.wb_rt_api_exec.run_task (
p_location_name => 'OWF_LOCATION',
p_task_type => 'PROCESS',
p_task_name => 'WF_ABC',
-- p_custom_params => paramlist ,
p_system_params => '',
p_oem_friendly => 0 ,
p_background => 1); -- execute in background
DBMS_OUTPUT.put_line (status);
COMMIT;
--- EXCEPTION
--- when others then
--- message;
--- null;
END;
我在这里错过了什么吗?提前致谢。