程式碼, 如下 :
程式碼
begin
wf_Engine.HandleError( '&item_type'
, '&item_key'
, '&activity_instance_internal_name'
, '&comflag'
, '&result'
);
commit;
end;
SKIP 範例 :
範例
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;
RETRY 範例 :
範例
begin
wf_Engine.HandleError( 'OEOH' -- OM Order Header
, '365908' -- Header ID
, 'APPROVAL_PROCESS:END' -- END (End)
, 'RETRY'
, NULL -- RETRY 不用指定流向, 給定 null 即可
);
commit;
end;