Documente Academic
Documente Profesional
Documente Cultură
Oracle Workflow’s graphical Workflow Builder lets you create, view, or modify
a business process with simple drag and drop operations. Using the builder,
you can create and modify reusable workflow objects, including activities,
rules, messages, and users.
The Workflow Monitor displays an annotated view of the process diagram for
particular instance of a workflow process, so that users can get graphical
depiction of their work item status. The Workflow Monitor also displays a
separate status summary for the work item, the process, each activity in the
process.
Navigator Window.
Process Window.
If you prefer to approach your design from a high level, you can first sketching
out the process diagram with activities, then go back later to create the
supporting objects for each activity.
If you prefer to take a more programmatic approach to your design, you can
first define each of the supporting objects of your process before attempting to
create a higher level process diagram.
19. What are the types of Standard activities available?
And/Or Activities
Comparison Activities
Compare Execution Time Activity
Wait Activity
Block Activity
Defer Thread Activity
Launch Process Activity
Noop Activity
Loop Counter Activity
Start Activity
End Activity
Role Resolution Activity
Notify Activity
Vote Yes/No Activity
Master/Detail Coordination Activities
Wait for Flow Activity
Continue Flow Activity
Assign Activity
Get Monitor URL Activity
Deleting the workflow items which no longer needed by calling WF_Purge API.
A predefined list of values. Each value in a lookup type has an internal and a
display name.
The amount of time the workflow item won’t be purged even the activity is
completed.
WF_STANDARD
WF_ENGINE
WF_CORE
WF_PURGE
WF_DIRECTORY
WF_PREF
WF_MONITOR
WF_QUEUE
FND_DOCUMENT_MANAGEMENT
WF_NOTIFICATIONS
The relationship that defines the completion of one activity and the activation
of another activity within a process. In a process diagram, the arrow drawn
between two activities represents a transition.
END;
CREATE OR REPLACE TRIGGER "ERP_SCHOOLS_DEMO_TRIGGER" AFTER INSERT ON INV.MTL_
SYSTEM_ITEMS_B REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
DECLARE
lv_id NUMBER := :NEW.inventory_item_id;
lv_item_segment1 VARCHAR2(100) := :NEW.segment1;
lv_itemtype VARCHAR2(80) := :NEW.item_type;
lv_user_id NUMBER := -1;
lv_itemkey VARCHAR2(10);
lv_orgid NUMBER :=2;
error_msg VARCHAR2(2000);
error_code NUMBER;
BEGIN
lv_user_id := fnd_global.user_id;
lv_orgid := fnd_global.org_id;
lv_itemkey := 1132; – This should be unique value
ERP_DEMO.LAUNCH_WORKFLOW('ERP_DEMO'
,lv_itemkey
,'ERPSCHOOLS_PROCESS' –process name
,lv_id
,lv_orgid
,lv_item_segment1
);
EXCEPTION
WHEN OTHERS THEN
error_code := SQLCODE;
error_msg := SQLERRM(SQLCODE);
RAISE_APPLICATION_ERROR(-20150,error_msg);
END;
/
CREATE OR REPLACE PACKAGE APPS.ERP_DEMO IS
PROCEDURE LAUNCH_WORKFLOW
(
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
process IN VARCHAR2,
item_id IN NUMBER,
org_id IN NUMBER,
item_segment1 IN VARCHAR2
);
END ERP_DEMO;
/
CREATE OR REPLACE PACKAGE BODY APPS.ERP_DEMO IS
PROCEDURE LAUNCH_WORKFLOW(
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
process IN VARCHAR2,
item_id IN NUMBER,
org_id IN NUMBER,
item_segment1 IN VARCHAR2
)
IS
v_master_form_link varchar2(5000);
v_item_number varchar2(100);
error_code varchar2(100);
error_msg varchar2(5000);
BEGIN
v_add_item_id := ' ITEM_ID="' || item_id || '"';
v_item_number := item_segment1;
v_master_form_link := v_master_form_link || v_add_item_id;
WF_ENGINE.Threshold := -1;
WF_ENGINE.CREATEPROCESS(itemtype, itemkey, process);
-- Get the value of attribute assigned in workflow
v_master_form_link := wf_engine.getitemattrtext(
itemtype => itemtype
,itemkey => itemkey
,aname => 'ERP_SEND_ITEM_FORM_LINK');
- assign values to variables so that you can usethe attributes
v_master_form_link varchar2(5000) := v_master_form_link||':#RESP_KEY="INVENTORY"
#APP_SHORT_NAME="INV" ORG_MODE="Y" ';
v_master_form_link := v_master_form_link || v_add_item_id;
--set the attribute values in workflow so that you can use them in notifications
WF_ENGINE.SetItemAttrText(itemtype, itemkey, 'MASTERFORM', v_master_form_link);
WF_ENGINE.SetItemAttrText(itemtype, itemkey, 'ERP_ITEM_NUMBER', item_segment1);
-- start the workflow process
WF_ENGINE.STARTPROCESS(itemtype, itemkey);
EXCEPTION WHEN OTHERS THEN
error_code := SQLCODE;
error_msg := SQLERRM(SQLCODE);
-- add dbms or fnd_output messages as required
END LAUNCH_WORKFLOW;
-- This procedure will just put the item number into workflow attribute ERP_ITEM_NUMBER
PROCEDURE GET_ITEM_DETAILS(
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
resultout OUT NOCOPY VARCHAR2
)
IS
v_GET_ITEM_NUMBER VARCHAR2(1000);
BEGIN
SELECT SEGMENT1 INTO V_GET_ITEM_NUMBER FROM MTL_SYSTEM_ITEMS_B WHERE ROWN
UM =1;
WF_ENGINE.SetItemAttrText(itemtype, itemkey, 'ERP_ITEM_NUMBER',v_GET_ITEM_NUMBER );
-- you can use the get function as below.
--v_GET_ITEM_NUMBER := wf_engine.getitemattrtext(
-- itemtype => itemtype
-- ,itemkey => itemkey
-- ,aname => 'X_ATTRIBUTE'
-- );
resultout:='COMPLETE:'||'Y';
exception when others then
dbms_output.put_line('Entered Exception');
fnd_file.put_line(fnd_file.log,'Entered Exception');
END GET_ITEM_DETAILS;
END ERP_DEMO;