在 Workflow Builder 開啟某個 Activity 屬性設定, 卻無法修改, 如下 :

對於這個問題的發生,
在於 Workflow Builder 的 Access Level 設定問題,
請到 Help > About Oracle Workflow Builder 2.6.3.5 畫面 :

將 Access Level 由 100 改成 0, 然後按下 Yes 鈕 :


此時, 再去開啟 Activity 屬性設定, 就可以進行修改了.




WF_ENGINE.SETITEMATTRTEXT( itemtype => P_ITEM_TYPE
, itemkey => P_ITEM_KEY
, aname => 'WF_ATTACHMENT'
, avalue => V_ATTACHMENT_URL
);
begin
sys.dbms_shared_pool.unkeep( 'Owner.Object_Name', 'P' );
dbms_output.put_line( 'Clear OK' );
exception
when others then
dbms_output.put_line( 'Error : ' || SQLERRM );
end;
DBMS_SESSION.RESET_PACKAGE;
直接到 Employee 作業中, 更改一下 Employee 資料, 然後儲存,
這樣同時會將 wf_local_roles.display_name 更改為 employee full name
直接下 update 語法,
更改 wf_local_roles.display_name 為 employee full name (per_all_people_f.full_name)
update wf_local_roles
set display_name = (select FULL_NAME
from PER_ALL_PEOPLE_F
where PERSON_ID = (select employee_id
from fnd_user
where user_name = name
)
and EFFECTIVE_START_DATE < SYSDATE
and (EFFECTIVE_END_DATE > SYSDATE or EFFECTIVE_END_DATE is null)
)
where name = '&USERNAME';
update wf_local_roles
set display_name = (select FULL_NAME
from PER_ALL_PEOPLE_F
where PERSON_ID = (select employee_id
from fnd_user
where user_name = name
)
and EFFECTIVE_START_DATE < SYSDATE
and (EFFECTIVE_END_DATE > SYSDATE or EFFECTIVE_END_DATE is null)
)
where name = '&USERNAME';

雖然在 "Oracle ERP 作業" 中, 該 User 擁有的某些 Responsibility 沒有失效,
但在 "WF_LOCAL_USER_ROLES" table 中, 有些欄位值已失效,
而導致此錯誤訊息.
update WF_LOCAL_USER_ROLES
set USER_END_DATE = null
, ROLE_END_DATE = null
, EFFECTIVE_END_DATE = null
, EXPIRATION_DATE = null
where USER_NAME = '&USER_NAME'
and EFFECTIVE_END_DATE > SYSDATE;
-- 避免將真正已失效的 Respsibility 又再次生效
雖然在 "Oracle ERP 作業" 中, 該 User 雖沒有失效,
但在 "WF_LOCAL_USER_ROLES" table 中, 有些欄位值已失效
或在 "WF_LOCAL_ROLES" table 中資料不存在,
而導致此錯誤訊息.
1) 到 Employee 作業重新 Update 存檔.
2) 然後到 Fnd User 作業中, 清除 Employee 欄位資料, 存檔,
再設定 Employee 欄位資料, 存檔即可.
update WF_LOCAL_USER_ROLES
set USER_END_DATE = null
, ROLE_END_DATE = null
, EFFECTIVE_END_DATE = null
, EXPIRATION_DATE = null
where USER_NAME = '&USER_NAME'
and ROLE_NAME = '&USER_NAME';
begin
wf_Engine.HandleError( '&item_type'
, '&item_key'
, '&activity_instance_internal_name'
, '&comflag'
, '&result'
);
commit;
end;
begin
wf_Engine.HandleError( 'OEOH' -- OM Order Header
, '296186' -- Header ID
, 'APPROVAL_ORDER_NTF' -- APPROVAL_ORDER_NTF (Notification for Order Approval)
, 'SKIP'
, 'PASS' -- PASS (Passes) / FAIL (Fails)
);
commit;
end;
begin
wf_Engine.HandleError( 'OEOH' -- OM Order Header
, '365908' -- Header ID
, 'APPROVAL_PROCESS:END' -- END (End)
, 'RETRY'
, NULL -- RETRY 不用指定流向, 給定 null 即可
);
commit;
end;